app/views/shared/_cancel.html.erb
<%= render PageFooterComponent.new do %>
<% if user_signing_up? %>
<%= link_to cancel_link_text, sign_up_cancel_path, method: :get, class: 'usa-button usa-button--unstyled' %>
<% else %>
<% if defined?(link_method) %>
<%= button_to cancel_link_text, link, method: link_method, class: 'usa-button usa-button--unstyled' %>
<% else %>
<%= link_to cancel_link_text, link %>
<% end %>
<% end %>
<% end %>