2023-07-30 15:49:30 +03:00
|
|
|
import { PropsWithRef } from 'react';
|
|
|
|
import Select, { SelectProps } from 'react-dropdown-select';
|
|
|
|
|
|
|
|
interface ConceptSelectProps<T>
|
|
|
|
extends Omit<PropsWithRef<SelectProps<T>>, 'noDataLabel'> {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-07-31 22:38:58 +03:00
|
|
|
function ConceptSelect<T extends object | string>({ className, ...props }: ConceptSelectProps<T>) {
|
2023-07-30 15:49:30 +03:00
|
|
|
return (
|
|
|
|
<Select
|
2023-09-03 18:26:50 +03:00
|
|
|
className={`overflow-x-ellipsis whitespace-nowrap clr-border clr-input outline-none ${className}`}
|
2023-07-30 15:49:30 +03:00
|
|
|
{...props}
|
|
|
|
noDataLabel='Список пуст'
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ConceptSelect;
|