2023-12-13 14:32:57 +03:00
|
|
|
'use client';
|
|
|
|
|
2023-07-25 20:27:29 +03:00
|
|
|
import { ThreeDots } from 'react-loader-spinner';
|
2023-07-15 17:46:19 +03:00
|
|
|
|
2023-12-13 14:32:57 +03:00
|
|
|
import { useConceptTheme } from '@/context/ThemeContext';
|
2023-09-03 18:26:50 +03:00
|
|
|
|
|
|
|
interface ConceptLoaderProps {
|
2023-08-13 13:18:50 +03:00
|
|
|
size?: number
|
|
|
|
}
|
|
|
|
|
2023-09-03 18:26:50 +03:00
|
|
|
export function ConceptLoader({size=10}: ConceptLoaderProps) {
|
2023-12-13 14:32:57 +03:00
|
|
|
const {colors} = useConceptTheme();
|
2023-07-15 17:46:19 +03:00
|
|
|
return (
|
2023-12-18 12:25:39 +03:00
|
|
|
<div className='flex justify-center'>
|
2023-12-15 17:34:50 +03:00
|
|
|
<ThreeDots
|
|
|
|
color={colors.bgSelected}
|
|
|
|
height={size*10}
|
|
|
|
width={size*10}
|
|
|
|
radius={size}
|
|
|
|
/>
|
|
|
|
</div>);
|
|
|
|
}
|