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

14 lines
352 B
Ruby
Raw Normal View History

module Dsfr
class InputStatusMessageComponent < ApplicationComponent
def initialize(errors_on_attribute:, error_full_messages:, described_by:)
@errors_on_attribute = errors_on_attribute
@error_full_messages = error_full_messages
@described_by = described_by
end
def render?
@errors_on_attribute
end
end
end