import { ComponentProps } from 'react'; import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, Popover, PopoverContent, PopoverTrigger, } from '@ballerine/ui'; import { Button } from '@/common/components/atoms/Button/Button'; import { ScrollArea } from '@/common/components/molecules/ScrollArea/ScrollArea'; import { Check, ChevronsUpDown } from 'lucide-react'; export interface IComboboxProps { items: Array<{ value: string; label: string }>; /** * Used for the component's placeholders. E.g. "Select a framework..." or "Search a framework..." */ resource: string; value: string; onChange: (value: string) => void; props?: { container?: ComponentProps<'div'>; popover?: ComponentProps; popoverTrigger?: ComponentProps; button?: ComponentProps; popoverContent?: ComponentProps; command?: ComponentProps; commandInput?: ComponentProps; commandEmpty?: ComponentProps; scrollArea?: ComponentProps; commandGroup?: ComponentProps; commandItem?: ComponentProps; chevronsUpDown?: ComponentProps; check?: ComponentProps; placeholder?: ComponentProps<'span'>; }; }