@use crate::comments::CommentView; @use crate::extensions::ProfileExt; @use crate::nav::NavState; @use crate::templates::button_js; @use crate::templates::layouts::home; @use crate::templates::comments::{nodes, profile_box}; @use hyaenidae_toolkit::templates::bbcode; @use hyaenidae_toolkit::{templates::button_group, Button}; @use hyaenidae_toolkit::{templates::{card, card_title, card_body}, Card}; @use hyaenidae_toolkit::templates::link; @use hyaenidae_toolkit::templates::{nested, nested_children}; @use hyaenidae_toolkit::templates::text_input; @(view: &CommentView, nav_state: &NavState) @if let Some(comment) = view.comments.comment(&view.cache) { @:home(&view.author().profile.name(), comment.body(), nav_state, { @:button_js() }, { @:card(&Card::full_width().dark(nav_state.dark()), { @:card_title({ Comment }) @:card_body({