'use client'; import { useMemo } from 'react'; import type { ReactNode } from 'react'; import type { FHIRPatient } from '@/lib/fhir'; import { ClientHeader } from './client-header'; interface PatientLayoutClientProps { patient: FHIRPatient; patientId: string; children: ReactNode; } export function PatientLayoutClient({ patient, patientId, children }: PatientLayoutClientProps) { const patientName = useMemo(() => { const name = patient.name?.[0]; if (!name) return 'deze patiƫnt'; return [ ...(name.prefix || []), ...(name.given || []), name.family, ] .filter(Boolean) .join(' '); }, [patient]); return (