# frozen_string_literal: true module Blacklight module Document # Render the 'more like this' results from the response class MoreLikeThisComponent < Blacklight::Component with_collection_parameter :document # @param [Blacklight::Document] document def initialize(document:) @document = document end def render? @document.more_like_this.present? end def link_to_document(*args) helpers.link_to_document(*args) end end end end