import React, { useEffect } from "react"; import { useRouter } from "next/router"; import { observer } from "mobx-react-lite"; // lib import { useMobxStore } from "lib/mobx/store-provider"; // components import { CommentCard, AddComment } from "components/issues/peek-overview"; // types import { IIssue } from "types/issue"; type Props = { issueDetails: IIssue; }; export const PeekOverviewIssueActivity: React.FC = observer((props) => { const router = useRouter(); const { workspace_slug } = router.query; const { issueDetails: issueDetailStore, project: projectStore, user: userStore } = useMobxStore(); const comments = issueDetailStore.details[issueDetailStore.peekId || ""]?.comments || []; console.log("issueDetailStore", issueDetailStore); return (

Activity

{workspace_slug && (
{comments.map((comment: any) => ( ))}
{projectStore.deploySettings?.comments && (
)}
)}
); });