<%
  modal_id = "archive-project-modal-#{project[:project]&.parameterize || 'unknown'}"
  project_name = project[:project]
%>

<%= render 'shared/modal', modal_id: modal_id, title: "Archive #{project_name}?", description: 'This project will be hidden from most stats and listings, however it will still be visible to you and any time logged will still count towards it. You can restore it anytime from the archived projects page.', icon_svg: '<path fill="currentColor" d="m20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-.17-.93-.46-1.27m-8.89 11.92L6.5 12H10v-2h4v2h3.5l-5.15 5.15c-.19.19-.51.19-.7 0M5.12 5l.81-1h12l.94 1z"/>', max_width: 'max-w-md', buttons: [{ text: 'Cancel', class: 'bg-dark hover:bg-darkless border border-darkless text-muted', action: 'click->modal#close' }, { text: 'Archive', class: 'bg-primary hover:bg-primary/75 text-on-primary font-medium', form: true, url: archive_my_project_repo_mapping_path(CGI.escape(project_name)), method: 'patch' }] %>
