import React from "react"; export interface IItemProps { label: string; value: any; } export interface ISelectProps { items: Array; onChange: (item: any) => void; current?: string; className?: string; testId?: string; } const update = ( items: Array, onChange: (item: any) => void, e: React.ChangeEvent, ) => { onChange(items.find((item) => item.value.toString() === e.target.value)); }; const Select = ({ items, onChange, current, className, testId, }: ISelectProps) => ( ); export default Select;