import { Search } from 'react-feather'; import { useLocalStorage } from '@/react/hooks/useLocalStorage'; import { AutomationTestingProps } from '@/types'; import { useDebounce } from '@/react/hooks/useDebounce'; interface Props extends AutomationTestingProps { value: string; placeholder?: string; onChange(value: string): void; } export function SearchBar({ value, placeholder = 'Search...', onChange, 'data-cy': dataCy, }: Props) { const [searchValue, setSearchValue] = useDebounce(value, onChange); return (