import { getIntakeById } from '../actions'; import { notFound } from 'next/navigation'; interface IntakePageProps { params: Promise<{ intakeId: string }>; } export default async function IntakePage({ params }: IntakePageProps) { const { intakeId } = await params; const intake = await getIntakeById(intakeId); if (!intake) { notFound(); } return (

Algemene Informatie

{intake.title}

{intake.department}

{intake.status}

{intake.start_date}

{intake.notes || 'Geen notities beschikbaar.'}
); }