import SelectField, { type SelectEntry } from '../../../../InputField/Select'; import { useRoleSelectField } from './RoleSelectField.styles'; interface Props { disabled?: boolean; label?: string; onChange: (newValue: string) => void; roles: Array; testId: string; value: string; } const RoleSelectField = ({ roles, value, onChange, testId, label, disabled }: Props): JSX.Element => { const { classes } = useRoleSelectField(); return (
{ onChange(event.target.value as string); }} options={roles} selectedOptionId={value} size="small" />
); }; export default RoleSelectField;