demarches-normaliennes/app/components/dsfr/notice_component.rb

13 lines
292 B
Ruby
Raw Normal View History

2022-09-14 15:32:56 +02:00
# 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