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_preview.rb
    path of file: ./repos/solidus/admin/spec/components/previews/solidus_admin/ui/pages/index
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

# @component "ui/pages/index"
class SolidusAdmin::UI::Pages::Index::ComponentPreview < ViewComponent::Preview
  include SolidusAdmin::Preview

  def overview
    records = Spree::Order.all
    page = GearedPagination::Recordset.new(records).page(1)

    component_subclcass = Class.new(component("ui/pages/index")) do
      def self.name
        "SolidusAdmin::MyIndex::Component"
      end

      def model_class
        Spree::Order
      end

      def search_key
        :number_cont
      end

      def search_url
        "/admin/orders"
      end

      def columns
        [:number]
      end

      def page_actions
        render component("ui/button").new(
          tag: :a,
          text: t('.add'),
       
    
  def overview
    records = Spree::Order.all
    page = GearedPagination::Recordset.new(records).page(1)

    component_subclcass = Class.new(component("ui/pages/index")) do
      def self.name
        "SolidusAdmin::MyIndex::Component"
      end

      def model_class
        Spree::Order
      end

      def search_key
        :number_cont
      end

      def search_url
        "/admin/orders"
      end

      def columns
        [:number]
      end

      def page_actions
        render component("ui/button").new(
          tag: :a,
          text: t('.add'),
          href: spree.new_admin_order_path,
          icon: "add-line",
        )
      end

      def batch_actions
        [{
          label: "Print",
          action: "print",
        }]
      end
    end

    render component_subclcass.new(page: page)
  end