/** * The default dropdown, used everywhere `JsonEditor` shows a ` ...passthrough }: SelectProps) => { // React warns if both `value` and `defaultValue` are passed, so spread only // whichever the caller supplied. const valueProps = value !== undefined ? { value } : { defaultValue: defaultValue ?? '' } return (
) }