mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at thread-bug 1.1 kB view raw
1import {View} from 'react-native' 2 3import {usePalette} from '#/lib/hooks/usePalette' 4import {atoms as a, useBreakpoints} from '#/alf' 5import * as Layout from '#/components/Layout' 6import {Text} from '#/components/Typography' 7import {TimesLarge_Stroke2_Corner0_Rounded} from './icons/Times' 8 9export function SearchError({ 10 title, 11 children, 12}: { 13 title?: string 14 children?: React.ReactNode 15}) { 16 const {gtMobile} = useBreakpoints() 17 const pal = usePalette('default') 18 19 return ( 20 <Layout.Content> 21 <View 22 style={[ 23 a.align_center, 24 a.gap_4xl, 25 a.px_xl, 26 { 27 paddingVertical: 150, 28 }, 29 ]}> 30 <TimesLarge_Stroke2_Corner0_Rounded width={32} fill={pal.colors.icon} /> 31 <View 32 style={[ 33 a.align_center, 34 {maxWidth: gtMobile ? 394 : 294}, 35 gtMobile ? a.gap_md : a.gap_sm, 36 ]}> 37 <Text style={[a.font_bold, a.text_lg, a.text_center, a.leading_snug]}> 38 {title} 39 </Text> 40 {children} 41 </View> 42 </View> 43 </Layout.Content> 44 ) 45}