import { Search, X } from 'lucide-react'; import { useTranslation } from 'react-i18next'; /* * SFR-02 공통컴포넌트: 검색 입력 */ interface SearchInputProps { value: string; onChange: (value: string) => void; placeholder?: string; className?: string; } export function SearchInput({ value, onChange, placeholder, className = '' }: SearchInputProps) { const { t } = useTranslation('common'); const effectivePlaceholder = placeholder ?? `${t('action.search')}...`; return (
onChange(e.target.value)} placeholder={effectivePlaceholder} className="w-full bg-surface-overlay border border-slate-700/50 rounded-lg pl-9 pr-8 py-2 text-[11px] text-label placeholder:text-hint focus:outline-none focus:border-blue-500/50" /> {value && ( )}
); }