2024-05-14 20:55:38 +00:00
|
|
|
"use client";
|
2024-05-16 07:37:47 +00:00
|
|
|
|
|
|
|
import { useSearchParams } from "next/navigation";
|
2024-05-14 08:56:54 +00:00
|
|
|
// components
|
|
|
|
import { ProjectDetailsView } from "@/components/views";
|
|
|
|
|
2024-05-16 07:37:47 +00:00
|
|
|
export default function WorkspaceProjectPage({ params }: { params: { workspace_slug: any; project_id: any } }) {
|
|
|
|
const { workspace_slug, project_id } = params;
|
|
|
|
|
|
|
|
const searchParams = useSearchParams();
|
|
|
|
const peekId = searchParams.get("peekId") || undefined;
|
|
|
|
|
|
|
|
if (!workspace_slug || !project_id) return <></>;
|
2024-05-14 08:56:54 +00:00
|
|
|
|
|
|
|
return <ProjectDetailsView workspaceSlug={workspace_slug} projectId={project_id} peekId={peekId} />;
|
|
|
|
}
|