@use crate::{ui::ButtonKind, Entry, State, ValidToken}; @use super::{layout, button_link, image, return_home}; @use uuid::Uuid; @(collection_id: Uuid, id: Uuid, entry: &Entry, token: &ValidToken, state: &State) @:layout(state, "Delete Image", Some("Are you sure you want to delete this image?"), { }, {

Delete Image

@:image(entry, state)

Are you sure you want to delete this image?

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