UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

23 lines (22 loc) 724 B
import { jsx as _jsx } from "react/jsx-runtime"; import CircularProgress from '@mui/material/CircularProgress'; import { styled } from '@mui/material/styles'; import { Box } from '@mui/material'; const PREFIX = 'SCCentralProgress'; const Root = styled(Box, { name: PREFIX, slot: 'Root', overridesResolver: (props, styles) => styles.root })(() => ({ display: 'flex', flexDirection: 'column', justifyContent: 'center', height: 'calc(100% - 100px)', padding: 50 })); export default function CentralProgress(props) { return (_jsx(Root, { children: _jsx(CircularProgress, Object.assign({ sx: { margin: '0 auto', display: 'block' } }, props)) })); }