mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-19 06:09:51 +03:00
24 lines
524 B
TypeScript
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;
|