import React from 'react';
import { useTheme } from '@material-ui/core/styles';
import { CircularProgress, Backdrop } from '@material-ui/core';
const LoadingOverlay = ({ open = true }) => {
    const theme = useTheme();
    return (React.createElement(Backdrop, { open: open, style: { zIndex: theme.zIndex.modal + 1 } }, React.createElement(CircularProgress, { color: "primary" })));
};
export default LoadingOverlay;
//# sourceMappingURL=LoadingOverlay.js.map