Sha256: 9e8f6109965f3970c3c9065b46dd6b1586a997f8ff02a486bdbf41d5a083719c
Contents?: true
Size: 403 Bytes
Versions: 10
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true module Spotlight # Component to render breadcrumbs class BreadcrumbsComponent < ViewComponent::Base attr_reader :breadcrumbs def initialize(breadcrumbs: []) @breadcrumbs = breadcrumbs super end def render? !helpers.resource_masthead? && breadcrumbs.present? end def path(path) helpers.url_for(path) end end end
Version data entries
10 entries across 10 versions & 1 rubygems