18F/identity-idp

View on GitHub
app/components/page_footer_component.rb

Summary

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

class PageFooterComponent < BaseComponent
  attr_reader :tag_options

  def initialize(**tag_options)
    @tag_options = tag_options
  end

  def call
    tag.div content, **tag_options, class: css_class
  end

  def css_class
    ['page-footer margin-top-4 padding-top-2 border-top border-primary-light', *tag_options[:class]]
  end
end