import { useEffect, useRef, useState } from 'react'; import { ChevronDown, Search, X } from 'lucide-react'; import { useTranslation } from 'react-i18next'; import type { FilamentOption, FilamentOptionSource } from './types'; /** * Pick one filament preset, showing where each preset came from. * * A native ` setQuery(e.target.value)} placeholder={t('inventory.searchPresets')} className="w-full pl-7 pr-7 py-1.5 bg-bambu-dark border border-bambu-dark-tertiary rounded-md text-sm text-white placeholder:text-bambu-gray/60 focus:outline-none focus:border-bambu-green" /> {query && ( )}
{shown.length === 0 ? (

{t('inventory.noResults')}

) : ( shown.map(option => ( )) )}
)} ); }