You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: component.rb
    path of file: ./repos/solidus/admin/app/components/solidus_admin/products/stock
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

class SolidusAdmin::Products::Stock::Compone
    
  def call
    stock_info =
      case @on_hand
      when Float::INFINITY
        tag.span t('.stock.in_stock', on_hand: t('.stock.infinity')), class: 'text-forest'
      when 1..Float::INFINITY
        tag.span t('.stock.in_stock', on_hand: @on_hand), class: 'text-forest'
      else
        tag.span t('.stock.in_stock', on_hand: @on_hand), class: 'text-red-500'
      end