Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
18 lines
357 B
TypeScript
18 lines
357 B
TypeScript
"use client";
|
|
|
|
import { useRouter } from "next/navigation";
|
|
|
|
import { BirthForm } from "@/app/profil/BirthForm";
|
|
|
|
export function NewPerson() {
|
|
const router = useRouter();
|
|
return (
|
|
<BirthForm
|
|
initial={null}
|
|
person={{}}
|
|
onCancel={() => router.push("/szemelyek")}
|
|
onSaved={(id) => router.push(`/kepletek/${id}`)}
|
|
/>
|
|
);
|
|
}
|