import React from 'react'; import { Backdrop, CircularProgress } from '@mui/material'; import { alpha } from '@mui/system'; interface BackdropComponentProps { position: 'absolute' | 'fixed'; isLoading: boolean; } const BackdropComponent: React.FC = ({ position = 'fixed', isLoading }) => ( alpha(palette.background.default, palette.action.disabledOpacity), zIndex: ({ zIndex }) => zIndex.drawer + 1, }} open={isLoading} > ); export default BackdropComponent;