ConceptPortal-public/rsconcept/frontend/src/components/Common/ConceptSelect.tsx

20 lines
487 B
TypeScript
Raw Normal View History

import { PropsWithRef } from 'react';
import Select, { SelectProps } from 'react-dropdown-select';
interface ConceptSelectProps<T>
extends Omit<PropsWithRef<SelectProps<T>>, 'noDataLabel'> {
}
function ConceptSelect<T extends object | string>({ className, ...props }: ConceptSelectProps<T>) {
return (
<Select
2023-08-13 21:25:59 +03:00
className={`overflow-x-ellipsis whitespace-nowrap ${className}`}
{...props}
noDataLabel='Список пуст'
/>
);
}
export default ConceptSelect;