mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 13:00:39 +03:00
19 lines
407 B
TypeScript
19 lines
407 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>({ ...props }: ConceptSelectProps<T>) {
|
||
|
return (
|
||
|
<Select
|
||
|
{...props}
|
||
|
noDataLabel='Список пуст'
|
||
|
/>
|
||
|
);
|
||
|
}
|
||
|
|
||
|
export default ConceptSelect;
|