import type { Dispatch, SetStateAction } from 'react'; import type { StyleProp, TextInputProps, ViewStyle } from 'react-native'; import type { FunctionProps } from '../CountryPickerModal/types'; export interface ClearButtonProps { setFilterString: Dispatch>; renderSearchInputClear?: ({ setFilterString }: FunctionProps) => JSX.Element; } export interface SearchTextInputProps extends ClearButtonProps { filterString?: string; headerSearchPlaceholder?: string; searchHeaderInputStyle?: StyleProp; searchHeaderProps?: TextInputProps; }