sul-dlss/argo

View on GitHub
app/components/show/item_component.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Show
  class ItemComponent < ApplicationComponent
    def initialize(presenter:)
      @presenter = presenter
    end

    attr_reader :presenter

    delegate :document, :cocina, :view_token, to: :presenter
    delegate :state_service, to: :@presenter
  end
end