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 (
{intake.title}
{intake.department}
{intake.status}
{intake.start_date}