mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-06-26 21:10:38 +03:00
23 lines
481 B
TypeScript
23 lines
481 B
TypeScript
import { ThreeDots } from 'react-loader-spinner';
|
|
|
|
import { useConceptTheme } from '../../context/ThemeContext';
|
|
|
|
interface ConceptLoaderProps {
|
|
size?: number
|
|
}
|
|
|
|
export function ConceptLoader({size=10}: ConceptLoaderProps) {
|
|
const {colors} = useConceptTheme()
|
|
|
|
return (
|
|
<div className='flex justify-center w-full h-full'>
|
|
<ThreeDots
|
|
color={colors.bgSelected}
|
|
height={size*10}
|
|
width={size*10}
|
|
radius={size}
|
|
/>
|
|
</div>
|
|
);
|
|
}
|