import { Search, X } from 'lucide-react' interface FAQSearchBarProps { searchTerm: string onSearchChange: (value: string) => void placeholder?: string } export function FAQSearchBar({ searchTerm, onSearchChange, placeholder = 'Search FAQ...', }: FAQSearchBarProps) { return (
onSearchChange(e.target.value)} placeholder={placeholder} className="w-full pl-12 pr-12 py-3 rounded-lg text-base transition-all focus:outline-none focus:ring-2" style={{ background: '#1E2329', border: '1px solid #2B3139', color: '#EAECEF', }} onFocus={(e) => { e.target.style.borderColor = '#F0B90B' e.target.style.boxShadow = '0 0 0 3px rgba(240, 185, 11, 0.1)' }} onBlur={(e) => { e.target.style.borderColor = '#2B3139' e.target.style.boxShadow = 'none' }} /> {searchTerm && ( )}
) }