1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

25 lines
648 B
TypeScript
Raw Normal View History

import { Flex, Spinner } from '@chakra-ui/react';
import type { LoadableBaseOptions } from 'next/dynamic';
2020-12-29 02:09:14 -07:00
export const Loading: LoadableBaseOptions['loading'] = () => (
<Flex flexDirection="column" minHeight="100vh" w="100%">
<Flex
px={2}
py={0}
w="100%"
bg="white"
color="black"
flex="1 1 auto"
textAlign="center"
alignItems="center"
justifyContent="center"
flexDirection="column"
css={{
'@media (prefers-color-scheme: dark)': { backgroundColor: 'black', color: 'white' },
}}>
<Spinner color="primary.500" w="6rem" h="6rem" />
</Flex>
2020-12-29 02:09:14 -07:00
</Flex>
);