Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
helpMessage,
children,
placeholder,
isVisible,
className,
onChange,
readOnly,
disabled,
forceDisplayMessage,
...otherProps
} = props;
let rowModifier = classModifier;
if (mode === CheckBoxModes.classic) {
rowModifier += ' label-top';
}
const newOptions = InputManager.getOptionsWithId(options);
const firstId = InputManager.getFirstId(newOptions);
return (
forceDisplayMessage,
value,
onChange,
readOnly,
disabled,
children,
...otherProps
} = props;
if (!isVisible) {
return null;
}
let rowModifier = classModifier;
if (mode === RadioModes.classic) {
rowModifier += ' label-top';
}
const newOptions = InputManager.getOptionsWithId(options);
const firstId = InputManager.getFirstId(newOptions);
return (