import { FC } from "react"; import { observer } from "mobx-react"; import { useRouter } from "next/router"; import useSWR from "swr"; // hooks import { ArchiveIcon, Breadcrumbs, LayersIcon } from "@plane/ui"; import { BreadcrumbLink, Logo } from "@/components/common"; import { ISSUE_DETAILS } from "@/constants/fetch-keys"; import { useProject } from "@/hooks/store"; // components // ui // types import { IssueArchiveService } from "@/services/issue"; // constants // services // helpers // components const issueArchiveService = new IssueArchiveService(); export const ProjectArchivedIssueDetailsHeader: FC = observer(() => { // router const router = useRouter(); const { workspaceSlug, projectId, archivedIssueId } = router.query; // store hooks const { currentProjectDetails } = useProject(); const { data: issueDetails } = useSWR( workspaceSlug && projectId && archivedIssueId ? ISSUE_DETAILS(archivedIssueId as string) : null, workspaceSlug && projectId && archivedIssueId ? () => issueArchiveService.retrieveArchivedIssue( workspaceSlug as string, projectId as string, archivedIssueId as string ) : null ); return (
) } /> } /> } /> } /> } /> } /> } />
); });