DB-GPT/web/components/common/loading.tsx
Dreammy23 471689ba20
feat(web): Unified frontend code style (#1923)
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>
2024-08-30 14:03:06 +08:00

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;