@use crate::comments::{CommentNode, ItemWithAuthor}; @use crate::templates::comments::{nodes, profile_box}; @use hyaenidae_toolkit::templates::link; @use hyaenidae_toolkit::templates::{nested_children, nested_node}; @(node: &CommentNode, replying_to: &ItemWithAuthor, logged_in: bool, dark: bool) @if let Some((comment, author)) = node.item.comment() { @:nested_node({ @:profile_box(author, comment, replying_to, dark, { }, { @comment.body() }) }) } @if node.has_children() { @:nested_children({ @for child in &node.children { @:nodes(child, &node.item, logged_in, dark) } }) }