17 lines
300 B
Ruby
17 lines
300 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Dossiers::AutosaveFooterComponent < ApplicationComponent
|
|
include ApplicationHelper
|
|
attr_reader :dossier
|
|
|
|
def initialize(dossier:, annotation:)
|
|
@dossier = dossier
|
|
@annotation = annotation
|
|
end
|
|
|
|
private
|
|
|
|
def annotation?
|
|
@annotation
|
|
end
|
|
end
|