mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-07-27 13:57:46 +00:00
Co-authored-by: Fangyin Cheng <staneyffer@gmail.com> Co-authored-by: 谨欣 <echo.cmy@antgroup.com> Co-authored-by: 严志勇 <yanzhiyong@tiansuixiansheng.com> Co-authored-by: yanzhiyong <932374019@qq.com>
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import { LoadingOutlined } from '@ant-design/icons';
|
|
|
|
function MuiLoading({ visible }: { visible: boolean }) {
|
|
if (!visible) return null;
|
|
|
|
return (
|
|
<div className='absolute w-full h-full top-0 left-0 flex justify-center items-center z-10 bg-white dark:bg-black bg-opacity-50 dark:bg-opacity-50 backdrop-blur-sm text-3xl animate-fade animate-duration-200'>
|
|
<LoadingOutlined />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default MuiLoading;
|