module Primer::ViewComponents

def self.deprecation

:nocov:
def self.deprecation
  @deprecation ||=
    if Rails.application.respond_to?(:deprecators)
      Rails.application.deprecators[:primer_view_components] ||= ActiveSupport::Deprecation.new(
        DEPRECATION_HORIZON, "primer_view_components"
      )
    else
      ActiveSupport::Deprecation.instance
    end
end

def self.root

primer/view_components root directory.
def self.root
  Pathname(File.expand_path(File.join("..", ".."), __dir__))
end