'use client'; import { ThreeCircles, ThreeDots } from 'react-loader-spinner'; import { useConceptOptions } from '@/context/ConceptOptionsContext'; import AnimateFade from '../wrap/AnimateFade'; interface LoaderProps { /** Scale of the loader from 1 to 10. */ scale?: number; /** Show a circular loader. */ circular?: boolean; } /** * Displays animated loader. */ function Loader({ scale = 5, circular }: LoaderProps) { const { colors } = useConceptOptions(); return ( {circular ? ( ) : ( )} ); } export default Loader;