cairo/src/components/common/Loading.tsx
Dunemask 0fc5f05b6a
Some checks failed
Deploy Edge / deploy-edge (push) Failing after 2s
S3 Repo Backup / s3-repo-backup (push) Failing after 2s
[INIT] Initial Project Structure
2024-08-24 12:41:04 -06:00

12 lines
522 B
TypeScript

import { Flex, FlexProps, Spinner, SpinnerProps } from "@chakra-ui/react";
export function LoadingSpinner(props: SpinnerProps) {
return <Spinner height="300px" width="300px" {...props} />;
}
export function CenteredLoadingSpinner(props: { SpinnerProps?: SpinnerProps; FlexProps?: FlexProps }) {
return (
<Flex flexDir="column" alignItems="center" justifyContent="center" p="20px" h="100vh" {...props.FlexProps}>
<Spinner height="250px" width="250px" mb="-40px" {...props.SpinnerProps} />
</Flex>
);
}