<%= render @dialog do |dialog| %> <%= render(@form_wrapper) do %> <%= render(Primer::Alpha::Dialog::Body.new) do %> <%= confirmation_message %> <% if additional_details? %> <%= additional_details %> <% end %> <%= confirmation_check_box %> <% end %> <%= render(Primer::Alpha::Dialog::Footer.new(show_divider: false)) do %> <%= render(Primer::Beta::Button.new(data: { "close-dialog-id": dialog_id })) { I18n.t("button_cancel") } %> <%= render(Primer::Beta::Button.new(type: (@form_wrapper.shows_form? ? :submit : :button), scheme: :danger, data: { "submit-dialog-id": dialog_id })) { I18n.t("button_delete_permanently") } %> <% end %> <% end %> <% end %>