import debounce from 'lodash/debounce'; import { AppInput } from './AppInput'; import { AppBox } from '../layout'; type Props = { onTextChange: (text: string) => void; onFocus?: () => void; onBlur?: () => void; }; export const AppSearchInput = ({ onTextChange, onFocus, onBlur }: Props) => { const debouncedTextChanged = debounce(onTextChange, 500); return ( ); };