import React from 'react'; import { cn } from '@/utils/helpers'; interface LoadingProps { size?: 'sm' | 'md' | 'lg'; fullScreen?: boolean; text?: string; } export const Loading: React.FC = ({ size = 'md', fullScreen = false, text, }) => { const sizes = { sm: 'w-6 h-6', md: 'w-12 h-12', lg: 'w-16 h-16', }; const spinner = (
{text &&

{text}

}
); if (fullScreen) { return (
{spinner}
); } return
{spinner}
; };