"use client"; import { type ComponentRenderProps } from "@json-render/react"; import { useData } from "@json-render/react"; import { getByPath } from "@json-render/core"; export function DatePicker({ element }: ComponentRenderProps) { const { label, valuePath } = element.props as { label: string; valuePath: string; }; const { data, set } = useData(); const value = getByPath(data, valuePath) as string | undefined; return (