link-stack/apps/link/app/(main)/setup/_components/Setup.tsx
Darren Clarke c620e4bf25 Flatten
2023-08-25 07:11:33 +00:00

31 lines
809 B
TypeScript

"use client";
import { FC, useLayoutEffect } from "react";
import { useRouter } from "next/navigation";
import { CircularProgress, Box, Grid } from "@mui/material";
import { ZammadWrapper } from "../../../(main)/_components/ZammadWrapper";
export const Setup: FC = () => {
const router = useRouter();
useLayoutEffect(() => {
setTimeout(() => router.push("/"), 4000);
}, [router]);
return (
<Box sx={{ width: "100%" }}>
<Grid
container
direction="column"
sx={{ height: 500 }}
justifyContent="center"
alignContent="center"
alignItems="center"
>
<Grid item>
<CircularProgress size={80} color="success" />
</Grid>
</Grid>
<ZammadWrapper path="/auth/sso" hideSidebar={false} />
</Box>
);
};