import {type Ref} from 'react' import {type TextInput, View} from 'react-native' import {useLingui} from '@lingui/react/macro' import {atoms as a, native, useTheme} from '#/alf' import {Button, ButtonIcon} from '#/components/Button' import * as TextField from '#/components/forms/TextField' import {MagnifyingGlass_Stroke2_Corner0_Rounded as Search} from '#/components/icons/MagnifyingGlass' import {TimesLarge_Stroke2_Corner0_Rounded as X} from '#/components/icons/Times' export function GifPickerHeader({ inputRef, value, onChangeText, onClear, onEscape, }: { inputRef: Ref> value: string onChangeText: (text: string) => void onClear: () => void onEscape: () => void }) { const {t: l} = useLingui() const t = useTheme() return ( { if (nativeEvent.key === 'Escape') { onEscape() } }} /> {value.length > 0 && ( )} ) }