1
0
postdoc/app/components/modal_component.rb

13 lines
202 B
Ruby
Raw Normal View History

2020-12-06 20:49:03 +01:00
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