import type React from 'react'; import { FormControl, InputLabel, MenuItem, Select, type SelectChangeEvent, } from '@mui/material'; import { SELECT_ITEM_ID } from 'utils/testIds'; export interface ISelectOption { key: string; title?: string; label?: string; } export interface ISelectMenuProps { name: string; id: string; value?: string; label?: string; options: ISelectOption[]; style?: object; onChange?: (event: SelectChangeEvent, child: React.ReactNode) => void; disabled?: boolean; className?: string; classes?: any; formControlStyles?: React.CSSProperties; } const SelectMenu: React.FC = ({ name, value = '', label = '', options, onChange, id, disabled = false, className, classes, formControlStyles = {}, ...rest }) => { const renderSelectItems = () => options.map((option) => ( {option.label} )); return ( {label} ); }; export default SelectMenu;