"use client"; import { BirthTimeIntakeFields } from "@/components/birth-time-intake"; import { BirthLocationFields } from "@/components/birth-location-fields"; import { CharacterRemaining } from "@/components/character-remaining"; import { characterRemainingVisible } from "@/lib/character-remaining"; import { applyBirthTimeDraftPatch } from "@/lib/birth-time-intake-model"; import { invalidateCandidateAfterLocationChange } from "@/lib/home-profile"; import type { Profile } from "@/lib/home-types"; export function ProfileFields({ value, onChange, nameInputId }: { value: Profile; onChange: (profile: Profile) => void; nameInputId?: string }) { const nameRemainingId = `${nameInputId ?? "profile-name"}-remaining`; return ( <> onChange(applyBirthTimeDraftPatch(value, patch))} /> onChange(invalidateCandidateAfterLocationChange(value, next))} /> ); }