demarches-normaliennes/app/components/instructeurs/back_button_component.rb
mfo e9120f90a7
feat(instructeurs/back): add back button
Co-authored-by: Colin Darie <colin@darie.eu>
2024-11-28 14:07:46 +01:00

11 lines
284 B
Ruby

# frozen_string_literal: true
class Instructeurs::BackButtonComponent < ApplicationComponent
def initialize(to:)
@to = to
end
def call
link_to "", @to, class: 'back-btn fr-btn fr-btn--secondary fr-btn--sm fr-mr-2w fr-icon-arrow-left-line', title: t('.back')
end
end