@use crate::{templates::{layouts::home, profiles::view}, profiles::Profile}; @use hyaenidae_accounts::LogoutState; @use hyaenidae_toolkit::{templates::{button_group, card, card_body, card_title, file_input, statics::{button_js, file_input_js}}, Button, Card, FileInput}; @(icon_input: &FileInput, error: Option, profile: &Profile, logout: LogoutState) @:home("Create Profile", "Create a new profile on Hyaenidae", &Some(logout), { }, { @:card(&Card::full_width().classes(&["account-page"]), {
@:card_title({ Add an Icon }) @:card_body({

This icon will be displayed on your profile, and next to submissions or comments you create.

}) @if let Some(error) = error { @:card_body({

@error

}) } @:card_body({ @:file_input(icon_input) }) @:card_body({ @:button_group(&[ &Button::primary("Next"), Button::outline("Back").href("/profiles/create/bio"), Button::primary_outline("Skip").href("/profiles/create/banner"), Button::primary_outline("Skip All").href("/profiles/create/done"), ]) })
}) @:card(&Card::full_width().classes(&["account-page"]), { @:card_title({ Preview }) @:view("", profile) }) })