import React from "react"; import Link from "next/link"; import { useRouter } from "next/router"; // mobx import { observer } from "mobx-react-lite"; // lib import { useMobxStore } from "lib/mobx/store-provider"; // components import { CommentCard, AddComment } from "components/issues/peek-overview"; // ui import { Icon, PrimaryButton } from "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

Sign in
)}
)}
); });