class Admission::ComponentDecorator < ApplicationDecorator
  def delete_confirmation
    <<~MESSAGE
      Deleting a(n) #{component_name} will remove it from all applications including those
      previously submitted. Are you sure you want to permanently delete #{object.name}?
    MESSAGE
  end

  def archive_confirmation
    <<~MESSAGE
      Archiving a(n) #{component_name} prevents it from being used in future applications.
      This can be reversed. Are you sure you want to archive #{object.name}?
    MESSAGE
  end

  private
    def component_name
      object.class.name.split('::').last
    end
end
