ConceptPortal-public/rsconcept/frontend/src/components/Common/Loader.tsx

19 lines
357 B
TypeScript
Raw Normal View History

2023-07-25 20:27:29 +03:00
import { ThreeDots } from 'react-loader-spinner';
2023-07-15 17:46:19 +03:00
interface LoaderProps {
size?: number
}
export function Loader({size=10}: LoaderProps) {
2023-07-15 17:46:19 +03:00
return (
2023-07-29 03:31:21 +03:00
<div className='flex justify-center w-full h-full'>
<ThreeDots
color='rgb(96 165 250)'
height={size*10}
width={size*10}
radius={size}
/>
2023-07-15 17:46:19 +03:00
</div>
);
}