import cx from 'clsx'; import React from 'react'; import s from './Selection.module.scss'; type SelectionProps = { OptionComponent?: (...args: any[]) => any; optionPropsList?: any[]; selectedIndex?: number; onChange?: (...args: any[]) => any; }; export function Selection2({ OptionComponent, optionPropsList, selectedIndex, onChange, }: SelectionProps) { const inputCx = cx('visually-hidden', s.input); const onInputChange = (e: React.ChangeEvent) => { onChange(e.target.value); }; return (
{optionPropsList.map((props, idx) => { return ( ); })}
); }