1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/frontend/src/component/common/Loader/Loader.tsx

27 lines
666 B
TypeScript
Raw Normal View History

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';
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',
}));
2023-01-05 15:23:40 +01:00
const Loader = () => {
return (
2023-01-05 15:23:40 +01:00
<StyledDiv role="alert" aria-label="Loading">
<StyledImg src={formatAssetPath(logo)} alt="" />
</StyledDiv>
);
};
export default Loader;