import { m } from 'framer-motion'; // @mui import { alpha, styled } from '@mui/material/styles'; import { Box, SxProps } from '@mui/material'; // import Logo from './Logo'; import ProgressBar from './ProgressBar'; // ---------------------------------------------------------------------- const RootStyle = styled('div')(({ theme }) => ({ right: 0, bottom: 0, zIndex: 99999, width: '100%', height: '100%', position: 'fixed', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: theme.palette.background.default, })); // ---------------------------------------------------------------------- type Props = { isDashboard?: boolean; sx?: SxProps; }; export default function LoadingScreen({ isDashboard, ...other }: Props) { return ( <> {!isDashboard && ( `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`, }} /> `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`, }} /> )} ); }