UNPKG

@plteam/chat-ui

Version:

CUI Kit is a free and open-source library for creating AI assistant chat interfaces, built with React, Material UI, and TypeScript

17 lines (16 loc) 695 B
import * as React from 'react'; import Stack from '@mui/material/Stack'; import { styled } from '@mui/material/styles'; import { CircularProgress } from '@mui/material'; const StackStyled = styled(Stack)(() => ({ position: 'absolute', height: '100%', width: '100%', pointerEvents: 'none', backgroundColor: 'transparent', })); const CircularLoadProgress = ({ progress, size }) => { return (React.createElement(StackStyled, { justifyContent: 'center', alignItems: 'center' }, React.createElement(CircularProgress, { variant: progress ? "determinate" : "indeterminate", value: progress, size: size || 40 }))); }; export default CircularLoadProgress;