import { notFound } from 'next/navigation'; import { ChevronLeft } from 'lucide-react'; import Link from 'next/link'; import { getClient } from '../../actions'; import { ClientForm } from '../../components/client-form'; interface EditClientPageProps { params: Promise<{ id: string }>; } export default async function EditClientPage({ params }: EditClientPageProps) { const { id } = await params; // Fetch client data let client; try { client = await getClient(id); } catch (error) { notFound(); } if (!client) { notFound(); } return (
Wijzig de gegevens van {client.first_name} {client.last_name}