import { Pressable, View } from 'react-native'; import { useColors, useGetStyleProps } from '../../hook'; import { useI18nContext } from '../../i18n'; import { usePaletteContext, useThemeContext } from '../../theme'; import { Icon } from '../../ui/Image'; import { SingleLineText } from '../../ui/Text'; /** * Search Style Component properties. */ export type SearchStyleProps = { /** * Title. */ title: string; /** * Press event. */ onPress: () => void; }; /** * Search Style Component. */ export function SearchStyle(props: SearchStyleProps) { const { title, onPress } = props; const { colors, cornerRadius } = usePaletteContext(); const { cornerRadius: corner } = useThemeContext(); const { getBorderRadius } = useGetStyleProps(); const { getColor } = useColors({ fg2: { light: colors.neutral[6], dark: colors.neutral[4], }, }); const { tr } = useI18nContext(); return ( {tr(title)} ); }