18F/identity-idp

View on GitHub
app/components/print_button_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

class PrintButtonComponent < ButtonComponent
  attr_reader :tag_options

  def initialize(**tag_options)
    super(**tag_options, type: :button, icon: :print)
  end

  def call
    content_tag(:'lg-print-button', super)
  end

  def content
    t('components.print_button.label')
  end
end