import Image from "next/image"; import { notFound } from "next/navigation"; // components import IssueNavbar from "@/components/issues/navbar"; // hooks import { usePublish } from "@/hooks/store"; // assets import planeLogo from "@/public/plane-logo.svg"; type Props = { children: React.ReactNode; params: { anchor: string } }; const ProjectIssuesLayout = (props: Props) => { const { children, params } = props; // params const { anchor } = params; // store hooks const publishSettings = usePublish(anchor); const { id, workspace_detail, project } = publishSettings; if (!workspace_detail || !project || !id) notFound(); return (
); }; export default ProjectIssuesLayout;