feat(intake): implement epic 4 intake core (overview, new flow, layout)

This commit is contained in:
colinislit
2025-11-22 14:03:22 +01:00
parent 86995a4466
commit 88440b7ac8
16 changed files with 1221 additions and 111 deletions

View File

@@ -0,0 +1,32 @@
import { getPatient } from '../actions';
import { ClientHeader } from './components/client-header';
import { ClientSidebar } from './components/client-sidebar';
export default async function PatientDetailLayout({
children,
params,
}: {
children: React.ReactNode;
params: Promise<{ id: string }>;
}) {
const { id } = await params;
const patient = await getPatient(id);
return (
<div className="h-screen flex flex-col">
{/* Client Header */}
<ClientHeader patient={patient} />
{/* Main Content Area with Sidebar */}
<div className="flex-1 flex overflow-hidden">
{/* Sidebar Navigation */}
<ClientSidebar patientId={id} />
{/* Page Content */}
<main className="flex-1 overflow-y-auto bg-slate-50">
{children}
</main>
</div>
</div>
);
}