diff --git a/app/panel/cases/[id]/page.tsx b/app/panel/cases/[id]/page.tsx new file mode 100644 index 0000000..267e32e --- /dev/null +++ b/app/panel/cases/[id]/page.tsx @@ -0,0 +1,41 @@ +import { ReportCard } from "@/components/cards/ReportCard"; +import { CardLink } from "@/components/common/CardLink"; +import { NavigationToolbar } from "@/components/common/NavigationToolbar"; +import { CaseActions } from "@/components/pages/inspector/CaseActions"; +import { fetchCaseById, fetchReportsByCase } from "@/lib/db"; +import { PizzaIcon } from "lucide-react"; +import { notFound } from "next/navigation"; + +export default async function Reports({ params }: { params: { id: string } }) { + const Case = await fetchCaseById(params.id); + if (!Case) return notFound(); + + const reports = await fetchReportsByCase(params.id); + + return ( +