demarches-normaliennes/app/components/procedure/pending_republish_component.rb

13 lines
238 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class Procedure::PendingRepublishComponent < ApplicationComponent
def initialize(procedure:, render_if:)
@procedure = procedure
@render_if = render_if
end
def render?
@render_if
end
end