1
0
postdoc/app/components/modal_component.rb
2020-12-06 21:05:11 +01:00

13 lines
202 B
Ruby

class ModalComponent < ViewComponent::Base
with_content_areas :body, :footer
attr_reader :title
def initialize(title: nil)
@title = title
end
def has_title?
title.present?
end
end