Sha256: 29e0d46407cc429aa25c651c4b7baa3195636b1553cf4393c31427f6334e9af8
Contents?: true
Size: 476 Bytes
Versions: 66
Compression:
Stored size: 476 Bytes
Contents
# frozen_string_literal: true module Koi module Header class IndexComponent < ViewComponent::Base attr_reader :model delegate :with_breadcrumb, :with_action, to: :@header def initialize(model:, title: model.model_name.human.pluralize) super @header = HeaderComponent.new(title:) @model = model @title = title end def call render @header.with_content(content || "") end end end end
Version data entries
66 entries across 66 versions & 1 rubygems