An ATproto social media client -- with an independent Appview.
at main 1.1 kB view raw
1import {View} from 'react-native' 2 3import {atoms as a, useBreakpoints, useTheme} from '#/alf' 4import * as Layout from '#/components/Layout' 5import {Text} from '#/components/Typography' 6import {TimesLarge_Stroke2_Corner0_Rounded} from './icons/Times' 7 8export function SearchError({ 9 title, 10 children, 11}: { 12 title?: string 13 children?: React.ReactNode 14}) { 15 const theme = useTheme() 16 const {gtMobile} = useBreakpoints() 17 18 return ( 19 <Layout.Content> 20 <View 21 style={[ 22 a.align_center, 23 a.gap_4xl, 24 a.px_xl, 25 { 26 paddingVertical: 150, 27 }, 28 ]}> 29 <TimesLarge_Stroke2_Corner0_Rounded 30 width={32} 31 fill={theme.palette.contrast_500} 32 /> 33 <View 34 style={[ 35 a.align_center, 36 {maxWidth: gtMobile ? 394 : 294}, 37 gtMobile ? a.gap_md : a.gap_sm, 38 ]}> 39 <Text style={[a.font_bold, a.text_lg, a.text_center, a.leading_snug]}> 40 {title} 41 </Text> 42 {children} 43 </View> 44 </View> 45 </Layout.Content> 46 ) 47}