1 import { CommentNodeI } from "../../interfaces";
3 export default function searchCommentTree(
6 ): CommentNodeI | undefined {
7 for (const node of tree) {
8 if (node.comment_view.comment.id === id) {
12 for (const child of node.children) {
13 const res = searchCommentTree([child], id);