import React from "react"; import { observer } from "mobx-react-lite"; import Link from "next/link"; import { useRouter } from "next/router"; import { Button } from "@plane/ui"; // components import { CommentCard, AddComment } from "@/components/issues/peek-overview"; import { Icon } from "@/components/ui"; // hooks import { useMobxStore, useUser } from "@/hooks/store"; // 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 } = useMobxStore(); const { data: currentUser } = useUser(); 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

)}
)}
); });