nodejs/www/components/common/input/select.tsx
import selectStyle from "@www/styles/common/input/select.module.css";
type Props = {
children: Array<React.ReactNode>;
OnChangeHandler?: Function;
};
export const SelectComponent = (props: Props) => {
return (
<select
className={selectStyle.select}
onChange={event => (props.OnChangeHandler ? props.OnChangeHandler(event) : null)}
>
{props.children}
</select>
);
};