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: bs_request_state_badge_component.rb
    path of file: ./repos/open-build-service/src/api/app/components
    
    the code of the file until where you have to start completion: class BsRequestStateBadgeComponent < ApplicationComponent
  attr_reader :state, :css_class

  def i
    
  def icon_state_tag
    if %i[declined revoked].include?(state)
      content_tag(
        :span,
        tag.i(class: "fas fa-#{decode_state_icon}").concat(
          tag.i(class: 'fas fa-slash fa-stack-1x fa-stack-slash top-icon')
        ),
        class: 'position-relative me-1'
      )
    else
      tag.i(class: "fas fa-#{decode_state_icon} me-1")
    end