const InputSelect = ({ id, label, labelHidden, name, options, value, defaultValue, helpMessage, onChange }) => { const optionElements = options.map((option) => { return ; }); const labelClassName = classNames({ 'next-label': true, 'helper--visually-hidden': labelHidden }); const handleChange = (e) => { onChange(e.target.value); }; let helpElement = null; if(helpMessage) { helpElement =
{helpMessage}
; } return(