2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-08-28 14:31:12 +02:00
|
|
|
class Procedure::Card::ChorusComponent < ApplicationComponent
|
|
|
|
def initialize(procedure:)
|
|
|
|
@procedure = procedure
|
|
|
|
end
|
|
|
|
|
|
|
|
def render?
|
|
|
|
@procedure.chorusable?
|
|
|
|
end
|
|
|
|
|
2023-10-13 13:16:22 +02:00
|
|
|
def complete?
|
|
|
|
@procedure.chorus_configuration.complete?
|
2023-08-28 14:31:12 +02:00
|
|
|
end
|
|
|
|
end
|