(null);
const popupMaxWidth = useMeasuredElementWidth(fieldRef);
const [currentValue, setCurrentValue] = React.useState(value);
React.useEffect(() => {
setCurrentValue(value);
}, [value]);
function updateValue(nextValue: string): void {
setCurrentValue(nextValue);
onValueChange?.(nextValue);
}
return (
{showLabel ? {name} : null}
);
}
export function SelectControl(
props: SelectControlProps,
): React.JSX.Element {
if (isSelectControlGroupProps(props)) {
const inputsPerRow = getInputsPerRow(props.inputsPerRow);
return (
{props.inputs.map((input, index) => (
))}
);
}
return ;
}