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

Activity

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

Sign in to add your comment

)}
)}
); });