import { useMultiSelect } from '@/hooks/ui/useMultiSelect.ts'; import { useTranslation } from '@/hooks/useI18n.tsx'; import { ChevronDown } from 'lucide-react'; import { Card } from '@/components/ui/Card.tsx'; import Checkbox from '@/components/ui/Checkbox.tsx'; import Input from '@/components/ui/Input.tsx'; interface MultiSelectProps { options: readonly string[]; selected: string[]; onChange: (selected: string[]) => void; placeholder: string; className?: string; } const MultiSelect = ({ options, selected, onChange, placeholder, className = '', }: MultiSelectProps) => { const { t } = useTranslation(); const { isOpen, setIsOpen, searchTerm, setSearchTerm, wrapperRef, toggleOption, filteredOptions, handleKeyDown, } = useMultiSelect(options as string[], selected, onChange); return (