import { User as UserIcon, Users as TeamIcon } from 'lucide-react'; import { OptionProps, components, MultiValueGenericProps } from 'react-select'; import { Select } from '@@/form-components/ReactSelect'; type Role = { Name: string }; type Option = { Type: 'user' | 'team'; Id: number; Name: string; Role: Role }; interface Props { name?: string; value: Option[]; onChange(value: readonly Option[]): void; options: Option[]; dataCy?: string; inputId?: string; placeholder?: string; } export function NamespaceAccessUsersSelector({ onChange, options, value, dataCy, inputId, name, placeholder, }: Props) { return (