import { FC } from "react"; import { observer } from "mobx-react-lite"; // hooks import { useIssueDetail } from "hooks/store"; // components import { IssueCommentCard } from "./comment-card"; // types import { TActivityOperations } from "../root"; type TIssueCommentRoot = { workspaceSlug: string; issueId: string; activityOperations: TActivityOperations; showAccessSpecifier?: boolean; }; export const IssueCommentRoot: FC = observer((props) => { const { workspaceSlug, issueId, activityOperations, showAccessSpecifier } = props; // hooks const { comment: { getCommentsByIssueId }, } = useIssueDetail(); const commentIds = getCommentsByIssueId(issueId); if (!commentIds) return <>; return (
{commentIds.map((commentId, index) => ( ))}
); });