2022-03-25 12:34:20 +01:00
|
|
|
import logo from 'assets/img/unleashLogoIconDarkAlpha.gif';
|
|
|
|
import { formatAssetPath } from 'utils/formatPath';
|
2023-01-05 15:23:40 +01:00
|
|
|
import { styled } from '@mui/material';
|
2021-11-26 11:12:37 +01:00
|
|
|
|
2023-01-05 15:23:40 +01:00
|
|
|
const StyledDiv = styled('div')(({ theme }) => ({
|
|
|
|
display: 'flex',
|
|
|
|
justifyContent: 'center',
|
|
|
|
alignItems: 'center',
|
|
|
|
minHeight: '100vh',
|
|
|
|
backgroundColor: theme.palette.background.paper,
|
|
|
|
}));
|
|
|
|
|
|
|
|
const StyledImg = styled('img')(({ theme }) => ({
|
|
|
|
width: '100px',
|
|
|
|
height: '100px',
|
|
|
|
}));
|
2021-11-26 11:12:37 +01:00
|
|
|
|
2023-01-05 15:23:40 +01:00
|
|
|
const Loader = () => {
|
2021-11-26 11:12:37 +01:00
|
|
|
return (
|
2023-01-05 15:23:40 +01:00
|
|
|
<StyledDiv role="alert" aria-label="Loading">
|
|
|
|
<StyledImg src={formatAssetPath(logo)} alt="" />
|
|
|
|
</StyledDiv>
|
2021-11-26 11:12:37 +01:00
|
|
|
);
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Loader;
|