import React, { useEffect } from "react"; // mobx import { observer } from "mobx-react-lite"; import { useMobxStore } from "lib/mobx/store-provider"; import { CommentCard, AddComment } from "components/issues/peek-overview"; type Props = { workspaceSlug: string; }; export const PeekOverviewIssueActivity: React.FC = observer((props) => { const { workspaceSlug } = props; const { issue: issueStore, user: userStore } = useMobxStore(); const issueId = issueStore?.activePeekOverviewIssueId; const comments = issueStore?.issue_detail[issueId ?? ""]?.comments ?? []; useEffect(() => { if (userStore.currentUser) return; userStore.getUserAsync(); }, [userStore]); return (

Activity

{comments.map((comment) => ( ))}
); });