Files
ncd-fe/packages/pl-fe/src/components/loading-screen.tsx
mkljczk 03e7227a12 pl-fe: optimizations?
Signed-off-by: mkljczk <git@mkljczk.pl>
2025-01-07 17:52:51 +01:00

20 lines
536 B
TypeScript

import React from 'react';
import LandingGradient from 'pl-fe/components/landing-gradient';
import Spinner from 'pl-fe/components/ui/spinner';
/** Fullscreen loading indicator. */
const LoadingScreen: React.FC = React.memo(() => (
<div className='fixed h-screen w-screen'>
<LandingGradient />
<div className='d-screen fixed z-10 flex w-screen items-center justify-center'>
<div className='p-4'>
<Spinner size={40} withText={false} />
</div>
</div>
</div>
));
export { LoadingScreen as default };