/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import type { ReactNode } from "react"; import { useRef } from "react"; import { observer } from "mobx-react"; // plane imports import { CommentReplyIcon } from "@plane/propel/icons"; import type { TIssueComment } from "@plane/types"; import { cn } from "@plane/utils"; // hooks type TCommentBlock = { comment: TIssueComment; ends: "top" | "bottom" | undefined; children: ReactNode; }; export const CommentBlock = observer(function CommentBlock(props: TCommentBlock) { const { comment, ends, children } = props; const commentBlockRef = useRef(null); if (!comment) return null; return (
{children}
); });