'use client'; import { useConceptOptions } from '@/context/ConceptOptionsContext'; interface LoaderProps { /** Scale of the loader from 1 to 10. */ scale?: number; /** Show a circular loader. */ circular?: boolean; } const animateRotation = (duration: string) => { return ( ); }; const animatePulse = (startBig: boolean, duration: string) => { return ( <> ); }; /** * Displays animated loader. */ function Loader({ scale = 5, circular }: LoaderProps) { const { colors } = useConceptOptions(); if (circular) { return (
{animateRotation('2.25s')} {animateRotation('1.75s')} {animateRotation('0.75s')}
); } else { return (
{animatePulse(true, '0.8s')} {animatePulse(false, '0.8s')} {animatePulse(true, '0.8s')}
); } } export default Loader;