mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
20 lines
487 B
TypeScript
20 lines
487 B
TypeScript
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
|
|
className={`overflow-x-ellipsis whitespace-nowrap ${className}`}
|
|
{...props}
|
|
noDataLabel='Список пуст'
|
|
/>
|
|
);
|
|
}
|
|
|
|
export default ConceptSelect;
|