mirror of
https://github.com/IRBorisov/ConceptPortal.git
synced 2025-11-20 17:21:24 +03:00
19 lines
430 B
TypeScript
19 lines
430 B
TypeScript
'use client';
|
|
|
|
import { ThreeDots } from 'react-loader-spinner';
|
|
|
|
import { useConceptTheme } from '@/context/ThemeContext';
|
|
|
|
interface LoaderProps {
|
|
size?: number;
|
|
}
|
|
|
|
export function Loader({ size = 10 }: LoaderProps) {
|
|
const { colors } = useConceptTheme();
|
|
return (
|
|
<div className='flex justify-center'>
|
|
<ThreeDots color={colors.bgSelected} height={size * 10} width={size * 10} radius={size} />
|
|
</div>
|
|
);
|
|
}
|