Module: MojComponent::Helpers

Defined in:
app/helpers/moj_component/helpers.rb

Instance Method Summary collapse

Instance Method Details

#moj_alertObject



5
6
7
# File 'app/helpers/moj_component/helpers.rb', line 5

def moj_alert(**, &)
  render(MojComponent::AlertComponent.new(**), &)
end

#moj_headerObject



9
10
11
# File 'app/helpers/moj_component/helpers.rb', line 9

def moj_header(**, &)
  render(MojComponent::HeaderComponent.new(**), &)
end

#moj_interruption_cardObject



13
14
15
# File 'app/helpers/moj_component/helpers.rb', line 13

def moj_interruption_card(**, &)
  render(MojComponent::InterruptionCardComponent.new(**), &)
end

#moj_sub_navigationObject



17
18
19
# File 'app/helpers/moj_component/helpers.rb', line 17

def moj_sub_navigation(**, &)
  render(MojComponent::SubNavigationComponent.new(**), &)
end