- Remove node_modules, dist, .next from git tracking - Add .next and *.tsbuildinfo to .gitignore - Remove Iranian mirrors from Dockerfiles (arvancloud.ir) - Add npm ci step for dependency installation - Ready for VPN-based internet access workflow
17 lines
650 B
TypeScript
17 lines
650 B
TypeScript
|
|
export default function Spinner({ size = 'md', className = '' }: { size?: 'sm' | 'md' | 'lg', className?: string }) {
|
|
const sizeClasses = {
|
|
sm: 'w-4 h-4',
|
|
md: 'w-6 h-6',
|
|
lg: 'w-8 h-8'
|
|
};
|
|
|
|
return (
|
|
<div className={`inline-block animate-spin rounded-full border-2 border-solid border-current border-r-transparent align-[-0.125em] motion-reduce:animate-[spin_1.5s_linear_infinite] ${sizeClasses[size]} ${className}`} role="status">
|
|
<span className="!absolute !-m-px !h-px !w-px !overflow-hidden !whitespace-nowrap !border-0 !p-0 ![clip:rect(0,0,0,0)]">
|
|
درحال بارگذاری...
|
|
</span>
|
|
</div>
|
|
);
|
|
}
|