'use client'; import React from 'react'; import { motion } from 'framer-motion'; import { Spin, Typography } from 'antd'; import { cn } from '@/utils/cn'; const { Text } = Typography; interface LoadingProps { size?: 'small' | 'default' | 'large'; text?: string; fullScreen?: boolean; className?: string; } export const Loading: React.FC = ({ size = 'default', text = 'Loading...', fullScreen = false, className, }) => { const containerClasses = cn( 'flex flex-col items-center justify-center', fullScreen ? 'fixed inset-0 bg-chorus-charcoal z-50' : 'py-8', className ); const spinnerSize = size === 'small' ? 20 : size === 'large' ? 40 : 30; return (
{text && ( {text} )} ); }; export default Loading;