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

<%= render 'shared/modal', modal_id: modal_id, title: "Restore #{project[:project]}?", description: 'This will restore the project to your main projects list and it will appear in stats again. This will not affect any time logged on this project.', icon_svg: '<path fill="currentColor" d="m20.55 5.22l-1.39-1.68A1.51 1.51 0 0 0 18 3H6c-.47 0-.88.21-1.15.55L3.46 5.22C3.17 5.57 3 6.01 3 6.5V19a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V6.5c0-.49-.17-.93-.45-1.28m-8.2 4.63L17.5 15H14v2h-4v-2H6.5l5.15-5.15c.19-.19.51-.19.7 0M5.12 5l.82-1h12l.93 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: 'Restore', class: 'bg-primary hover:bg-primary/75 text-on-primary font-medium', form: true, url: unarchive_my_project_repo_mapping_path(CGI.escape(project[:project_key] || project[:project])), method: 'patch' }] %>
