interface SearchInputProps {
value: string;
onChange: (value: string) => void;
placeholder?: string;
label?: string;
disabled?: boolean;
}
/** 검색 아이콘 + 텍스트 입력 */
export default function SearchInput({
value,
onChange,
placeholder = "검색...",
label,
disabled,
}: SearchInputProps) {
return (
{label && (
)}
search
onChange(e.target.value)}
placeholder={placeholder}
disabled={disabled}
className="w-full h-[38px] pl-10 pr-3 border border-gray-300 rounded-lg text-sm focus:ring-2 focus:ring-primary/20 focus:border-primary transition-colors disabled:opacity-50 disabled:cursor-not-allowed disabled:bg-gray-50"
/>
);
}