feat: round out rapportage epic
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user