@use crate::UpdateUsernameState; @use super::inputs::{text_input, password_input}; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title}, Button, Card}; @(card_config: &Card, state: &UpdateUsernameState) @:card(card_config, {
@:card_title({ Update Username }) @:card_body({ @:text_input("new_username", "New Username", state.username(), state.username_error(), state.dark) @:password_input("password", "Password", state.password(), state.password_error(), state.dark) }) @:card_body({ @:button_group(&[Button::primary("Update Username")]) })
})