@use crate::{ui::ButtonKind, Collection, State, ValidToken}; @use super::{layout, button_link, return_home}; @use uuid::Uuid; @(id: Uuid, collection: &Collection, token: &ValidToken, state: &State) @:layout(state, &format!("Delete: {}", collection.title), Some(&format!("Are you sure you want to delete {}", collection.title)), { }, {

Delete @collection.title

Are you sure you want to delete @collection.title

@:button_link("Delete Collection", &state.delete_collection_path(id, token, true), ButtonKind::Submit) @:button_link("Cancel", &state.edit_collection_path(id, token), ButtonKind::Outline)
@:return_home(state) })