import { observer } from "mobx-react-lite"; // components import { Loader } from "@plane/ui"; import { PeekOverviewHeader, PeekOverviewIssueActivity, PeekOverviewIssueDetails, PeekOverviewIssueProperties, } from "@/components/issues/peek-overview"; // store hooks import { usePublish } from "@/hooks/store"; // types import { IIssue } from "@/types/issue"; type Props = { anchor: string; handleClose: () => void; issueDetails: IIssue | undefined; }; export const SidePeekView: React.FC = observer((props) => { const { anchor, handleClose, issueDetails } = props; // store hooks const { canComment } = usePublish(anchor); return (
{issueDetails ? (
{/* issue title and description */}
{/* issue properties */}
{/* divider */}
{/* issue activity/comments */} {canComment && (
)}
) : (
)}
); });