2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-03-01 18:30:10 +01:00
|
|
|
class Dossiers::AutosaveFooterComponent < ApplicationComponent
|
|
|
|
include ApplicationHelper
|
|
|
|
attr_reader :dossier
|
|
|
|
|
|
|
|
def initialize(dossier:, annotation:)
|
|
|
|
@dossier = dossier
|
|
|
|
@annotation = annotation
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def annotation?
|
|
|
|
@annotation
|
|
|
|
end
|
|
|
|
end
|