@use crate::templates::{button_js, file_js}; @use crate::{templates::{layouts::home, profiles::{banner, icon, view}}, nav::NavState, profiles::ProfileState}; @use hyaenidae_toolkit::{templates::{button, button_group, card, card_body, card_title, file_input, text_input}, Button, Card}; @(state: &ProfileState, nav_state: &NavState) @:home("Profile Settings", &format!("{}'s profile", state.profile.name()), nav_state, { @:button_js() @:file_js() }, { @:card(Card::full_width().dark(nav_state.dark()), { @:view(&state.profile, nav_state.dark()) }) @:card(Card::full_width().dark(nav_state.dark()), { @:card_title({ Profile Actions }) @:card_body({ @:button_group(&[ &Button::secondary("View Profile").href(&state.view_path()).dark(nav_state.dark()), &Button::secondary("Switch Profile").href("/profiles/change").dark(nav_state.dark()), ]) }) }) @:card(Card::full_width().dark(nav_state.dark()), { @:card_title({ Update Profile }) @:card_body({
}) @:card_body({ }) @:card_body({ }) @:card_body({ }) }) @:card(Card::full_width().dark(nav_state.dark()), { @:card_title({ Danger }) @:card_body({ @:button_group(&[ Button::primary_outline("Delete Profile").href("/profiles/delete").dark(nav_state.dark()), ]) }) }) })