frontend client for gemstone. decentralised workplace app
at main 534 B view raw
1import type { HexCode } from "@/lib/facet/src/lib/colors"; 2import { useCurrentPalette } from "@/providers/ThemeProvider"; 3import { ActivityIndicator, View } from "react-native"; 4 5export const Loading = ({ 6 color, 7 size, 8}: { 9 color?: HexCode; 10 size?: number | "large" | "small"; 11}) => { 12 const { semantic } = useCurrentPalette(); 13 return ( 14 <View> 15 <ActivityIndicator 16 size={size ?? "large"} 17 color={color ?? semantic.primary} 18 /> 19 </View> 20 ); 21};