feat: round out rapportage epic

This commit is contained in:
colinislit
2025-11-23 20:20:03 +01:00
parent 290d78b6d7
commit 24c43a693d
9 changed files with 1677 additions and 31 deletions

View File

@@ -1,11 +1,20 @@
import type { ReactNode } from 'react';
import { getPatient } from '../actions';
import { PatientLayoutClient } from './components/patient-layout-client';
export default async function PatientDetailLayout({
children,
params,
}: {
children: React.ReactNode;
children: ReactNode;
params: Promise<{ id: string }>;
}) {
const { id } = await params;
const patient = await getPatient(id);
return <>{children}</>;
return (
<PatientLayoutClient patientId={id} patient={patient}>
{children}
</PatientLayoutClient>
);
}