mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
31 lines
723 B
TypeScript
31 lines
723 B
TypeScript
"use client";
|
|
|
|
import { observer } from "mobx-react-lite";
|
|
import { useSearchParams } from "next/navigation";
|
|
// components
|
|
import { ProjectDetailsView } from "@/components/views";
|
|
// hooks
|
|
import { usePublish } from "@/hooks/store";
|
|
|
|
type Props = {
|
|
params: {
|
|
anchor: string;
|
|
};
|
|
};
|
|
|
|
const ProjectIssuesPage =observer ((props: Props) => {
|
|
const { params } = props;
|
|
const { anchor } = params;
|
|
// params
|
|
const searchParams = useSearchParams();
|
|
const peekId = searchParams.get("peekId") || undefined;
|
|
|
|
const publishSettings = usePublish(anchor);
|
|
|
|
if (!publishSettings) return null;
|
|
|
|
return <ProjectDetailsView peekId={peekId} publishSettings={publishSettings} />;
|
|
});
|
|
|
|
export default ProjectIssuesPage;
|