cairo/src/components/common/Fallback.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

13 lines
465 B
TypeScript

import { Flex, FlexProps, TextProps, Text } from "@chakra-ui/react";
import React from "react";
export function CenteredErrorFallback(props: { TextProps?: TextProps; FlexProps?: FlexProps }) {
return (
<Flex flexDir="column" alignItems="center" justifyContent="center" p="20px" h="100vh" {...props.FlexProps}>
<Text {...props.TextProps}>
Oops! Looks like something broke!
<br /> Please try again later!
</Text>
</Flex>
);
}