UNPKG

@selfcommunity/react-ui

Version:

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

24 lines (23 loc) 796 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const material_1 = require("@mui/material"); const PREFIX = 'SCCentralProgress'; const Root = (0, material_1.styled)(material_1.Box, { name: PREFIX, slot: 'Root', overridesResolver: (props, styles) => styles.root })(() => ({ display: 'flex', flexDirection: 'column', justifyContent: 'center', height: 'calc(100% - 100px)', padding: 50 })); function CentralProgress(props) { return ((0, jsx_runtime_1.jsx)(Root, { children: (0, jsx_runtime_1.jsx)(material_1.CircularProgress, Object.assign({ sx: { margin: '0 auto', display: 'block' } }, props)) })); } exports.default = CentralProgress;