import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import Fade from '@mui/material/Fade'; interface FullScreenLoaderProps { message?: string; fullScreen?: boolean; } export const FullScreenLoader = ({ message, fullScreen = true, }: FullScreenLoaderProps) => { const containerSx = fullScreen ? { position: 'fixed' as const, inset: 0, display: 'flex', flexDirection: 'column' as const, alignItems: 'center', justifyContent: 'center', gap: 3, zIndex: 9999, pointerEvents: 'none' as const, } : { display: 'flex', flexDirection: 'column' as const, alignItems: 'center', justifyContent: 'center', gap: 3, width: '100%', height: '100%', }; return ( {/* Плавное появление фона */} {fullScreen && ( )} {/* Плавное появление контента */} {message && ( {message} )} ); };