frontend client for gemstone. decentralised workplace app
at main 1.1 kB view raw
1import { Loading } from "@/components/primitives/Loading"; 2import { Text } from "@/components/primitives/Text"; 3import { useFacet } from "@/lib/facet"; 4import { useProfile } from "@/providers/authed/ProfileProvider"; 5import { View } from "react-native"; 6 7export const Home = () => { 8 const { profile, isLoading } = useProfile(); 9 const { typography } = useFacet(); 10 11 return ( 12 <View 13 style={{ 14 flex: 1, 15 flexDirection: "column", 16 alignItems: "center", 17 justifyContent: "center", 18 }} 19 > 20 {isLoading ? ( 21 <Loading /> 22 ) : !profile ? ( 23 <Text>Couldn&apos;t load profile :(</Text> 24 ) : ( 25 <> 26 <Text style={[typography.sizes.lg]}> 27 Welcome to Gemstone! 28 </Text> 29 <Text style={[typography.sizes.lg]}> 30 Channels are on the left :D 31 </Text> 32 </> 33 )} 34 </View> 35 ); 36};