@use crate::{templates::{layouts::home, profiles::view}, nav::NavState, profiles::Profile}; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, statics::button_js}, Button, Card}; @(profile: &Profile, nav_state: &NavState) @:home("Delete Profile", &format!("Delete {}", profile.name()), nav_state, { }, { @:card(Card::full_width().dark(nav_state.dark()), { @:view(profile, nav_state.dark()) }) @:card(Card::full_width().dark(nav_state.dark()), {
@:card_title({ Delete Profile }) @:card_body({ Are you sure you want to delete @profile.name()? }) @:card_body({ @:button_group(&[&Button::primary("Delete Profile").dark(nav_state.dark())]) })
}) })