import { Comment } from "@metahkg/api"; import parse from "html-react-parser"; import React from "react"; export default function RenderComment(props: { comment: Comment; depth: number }) { const { comment, depth } = props; const commentJSX = parse(comment.comment); const content = [ comment.quote && depth < 3 && (
), commentJSX, ]; return {content}; }