Files
EMS-ESP32/interface/src/components/loading/LazyLoader.tsx
2025-11-23 16:55:46 +01:00

24 lines
524 B
TypeScript

import { memo } from 'react';
import { Box, CircularProgress } from '@mui/material';
import type { SxProps, Theme } from '@mui/material';
const containerStyles: SxProps<Theme> = {
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
minHeight: '200px',
backgroundColor: 'background.default',
borderRadius: 1,
border: '1px solid',
borderColor: 'divider'
};
const LazyLoader = memo(() => (
<Box sx={containerStyles}>
<CircularProgress size={40} />
</Box>
));
export default LazyLoader;