import { MagnifyingGlassIcon, XIcon } from '@phosphor-icons/react'; import { Button } from './button'; import { InputGroup, InputGroupAddon, InputGroupInput } from './input-group'; type SearchInputProps = { keywords: string; setKeyword: (value: string) => void; onChange: (e: React.ChangeEvent) => void; }; const SearchInput = ({ keywords, setKeyword, onChange }: SearchInputProps) => { const onClearSearch = () => { setKeyword(''); }; return ( {keywords !== '' && ( )} ); }; export default SearchInput;