forked from SmartDropLabs/smartdrop-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.tsx
More file actions
23 lines (22 loc) · 683 Bytes
/
Copy pathloading.tsx
File metadata and controls
23 lines (22 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Flex, Spinner, Text } from "@chakra-ui/react";
// Next.js App Router special file (issue #242): shown as the Suspense
// fallback for the root segment — the initial app boot, and any route
// transition slow enough to suspend — instead of a blank/unstyled screen
// while the client bundle and providers initialize.
export default function Loading() {
return (
<Flex
direction="column"
align="center"
justify="center"
gap={4}
minH="100vh"
bg="app.bg"
>
<Spinner size="xl" color="app.accent" thickness="3px" />
<Text color="app.muted" fontSize="sm">
Loading SmartDrop…
</Text>
</Flex>
);
}