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
|
|
|
|
2024-01-04 19:30:10 +03:00
|
|
|
interface LoaderProps {
|
2023-12-28 14:04:44 +03:00
|
|
|
size?: number;
|
2023-08-13 13:18:50 +03:00
|
|
|
}
|
|
|
|
|
2024-01-04 19:30:10 +03:00
|
|
|
export function Loader({ size = 10 }: LoaderProps) {
|
2023-12-28 14:04:44 +03:00
|
|
|
const { colors } = useConceptTheme();
|
2023-07-15 17:46:19 +03:00
|
|
|
return (
|
2023-12-28 14:04:44 +03:00
|
|
|
<div className='flex justify-center'>
|
|
|
|
<ThreeDots color={colors.bgSelected} height={size * 10} width={size * 10} radius={size} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|