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