⚒️ Add loaders.

This commit is contained in:
pheralb
2022-06-28 13:17:36 +01:00
parent e7ec89a8c6
commit 4cca689a95
2 changed files with 7 additions and 4 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
import { LoadingProps } from "@/interfaces/components";
import { Center, Spinner, Text, VStack } from "@chakra-ui/react";
import { LeapFrog } from "@uiball/loaders";
const Loading = (props: LoadingProps) => {
return (
<Center>
<VStack spacing={3}>
<Spinner color="brand.purple" />
<VStack spacing={3} mt="3">
<LeapFrog size={32} speed={2.5} color="#4343E5" />
<Text>{props.text}</Text>
</VStack>
</Center>