2023-04-18 15:09:02 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class Instructeurs::InstructionMenuComponent < ApplicationComponent
|
|
|
|
attr_reader :dossier
|
|
|
|
|
|
|
|
def initialize(dossier:)
|
|
|
|
@dossier = dossier
|
|
|
|
end
|
|
|
|
|
|
|
|
def render?
|
2023-04-18 18:06:24 +02:00
|
|
|
dossier.en_instruction?
|
2023-04-18 15:09:02 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
def menu_label
|
2023-04-18 18:06:24 +02:00
|
|
|
t(".instruct")
|
2023-04-18 15:09:02 +02:00
|
|
|
end
|
|
|
|
end
|