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-09-03 18:26:50 +03:00
|
|
|
|
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'>
|
2023-08-13 13:18:50 +03:00
|
|
|
<ThreeDots
|
2023-09-03 18:26:50 +03:00
|
|
|
color={colors.bgSelected}
|
2023-08-13 13:18:50 +03:00
|
|
|
height={size*10}
|
|
|
|
width={size*10}
|
|
|
|
radius={size}
|
|
|
|
/>
|
2023-07-15 17:46:19 +03:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|