luom2645's picture
Upload folder using huggingface_hub
9dd9a58 verified
Raw History Blame Contribute Delete
610 Bytes
import React from 'react';
interface LoadingSpinnerProps {
size?: 'sm' | 'md' | 'lg';
className?: string;
}
const LoadingSpinner: React.FC<LoadingSpinnerProps> = ({ size = 'md', className = '' }) => {
const sizeClasses = {
sm: 'w-4 h-4',
md: 'w-8 h-8',
lg: 'w-12 h-12'
};
return (
<div className={`flex items-center justify-center ${className}`}>
<div className={`${sizeClasses[size]} animate-spin`}>
<div className="w-full h-full border-4 border-accent-cyan/30 border-t-accent-cyan rounded-full"></div>
</div>
</div>
);
};
export default LoadingSpinner;