import { m } from 'framer-motion'; import { useState, useEffect } from 'react'; // @mui import { alpha } from '@mui/material/styles'; import Box, { BoxProps } from '@mui/material/Box'; // import Logo from '../logo'; // ---------------------------------------------------------------------- export default function SplashScreen({ sx, ...other }: BoxProps) { const [mounted, setMounted] = useState(false); useEffect(() => { setMounted(true); }, []); if (!mounted) { return null; } return ( <> `solid 3px ${alpha(theme.palette.primary.dark, 0.24)}`, }} /> `solid 8px ${alpha(theme.palette.primary.dark, 0.24)}`, }} /> ); }