/** * Copyright (c) 2023-present Plane Software, Inc. and contributors * SPDX-License-Identifier: AGPL-3.0-only * See the LICENSE file for details. */ import { observer } from "mobx-react"; // plane imports import { Loader } from "@plane/ui"; // store hooks import { usePublish } from "@/hooks/store/publish"; // types import type { IIssue } from "@/types/issue"; // local imports import { PeekOverviewHeader } from "./header"; import { PeekOverviewIssueActivity } from "./issue-activity"; import { PeekOverviewIssueDetails } from "./issue-details"; import { PeekOverviewIssueProperties } from "./issue-properties"; type Props = { anchor: string; handleClose: () => void; issueDetails: IIssue | undefined; }; export const SidePeekView = observer(function SidePeekView(props: 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 && (
)}
) : (
)}
); });