@use crate::DeleteUserState; @use super::inputs::password_input; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title}, Button, Card}; @(card_config: &Card, state: &DeleteUserState) @:card(card_config, {
@:card_title({ Delete Account }) @:card_body({ @:password_input("password", "Password", state.password(), state.password_error(), state.dark) }) @:card_body({ @:button_group(&[ Button::primary("Delete Account").dark(state.dark), Button::primary_outline("Cancel").href(&state.accounts_path()).dark(state.dark), ]) })
})