plane/space/app/issues/[anchor]/page.tsx
2024-06-04 20:33:42 +05:30

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;