mirror of
https://github.com/Vomitblood/stort.git
synced 2025-04-01 03:31:00 +08:00
26 lines
593 B
TypeScript
26 lines
593 B
TypeScript
import { Box, Typography, LinearProgress } from "@mui/material";
|
|
import { FC } from "react";
|
|
|
|
interface LoadingScreenProps {
|
|
loadingText?: string;
|
|
}
|
|
|
|
export const LoadingScreen: FC<LoadingScreenProps> = ({ loadingText }) => {
|
|
return (
|
|
<Box
|
|
sx={{
|
|
alignItems: "center",
|
|
display: "flex",
|
|
flexDirection: "column",
|
|
height: "100vh",
|
|
justifyContent: "center",
|
|
}}
|
|
>
|
|
<Typography variant="h6" sx={{ mb: 2 }}>
|
|
{loadingText}
|
|
</Typography>
|
|
<LinearProgress color="primary" sx={{ width: "80%" }} />
|
|
</Box>
|
|
);
|
|
};
|