Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 47x | import type { Baby } from '@/features/babies/api/babies.schemas'
import type { MilestoneCategory } from '../api/milestones.schemas'
import { MilestoneEditorDialog } from './MilestoneEditorDialog'
export function AddMilestoneDialog({
open,
onOpenChange,
suggestion,
babies,
}: {
open: boolean
onOpenChange: (open: boolean) => void
suggestion?: { title: string; category: MilestoneCategory }
babies?: Baby[]
}) {
return open ? (
<MilestoneEditorDialog
providedBabies={babies}
onOpenChange={onOpenChange}
suggestion={suggestion}
/>
) : null
}
|