@use crate::{templates::{layouts::root, nav}, nav::NavState};
@use crate::templates::statics::nav_js;
@use hyaenidae_toolkit::templates::{bar, centered};
@use hyaenidae_toolkit::{templates::{card, card_body}, Card};
@use hyaenidae_toolkit::{templates::link, Link};
@use hyaenidae_toolkit::{templates::button_group, Button};
@(title: &str, description: &str, nav_state: &NavState, head: Content, body: Content)
@:root(title, description, nav_state.dark(), {
@:head()
}, {
@:bar(nav_state.dark(), "desktop-bar", {
@:link(&Link::current_tab("/").plain(true), {
Hyaenidae
})
})
@:bar(nav_state.dark(), "mobile-bar", {
@:link(&Link::current_tab("/").plain(true), {
Hyaenidae
})
@:link(&Link::current_tab(nav_state.href()).plain(true), { Nav })
})
@:centered(false, {
@:body()
})
@:link(&Link::current_tab(nav_state.href()).plain(true), {
})
})