demarches-normaliennes/app/components/dsfr/notice_component.rb
2022-09-21 15:47:35 +02:00

12 lines
292 B
Ruby

# see: https://www.systeme-de-design.gouv.fr/elements-d-interface/composants/bandeau-d-information-importante/
class Dsfr::NoticeComponent < ApplicationComponent
renders_one :title
def initialize(closable: false)
@closable = closable
end
def closable?
!!@closable
end
end