File size: 535 Bytes
057576a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import React from 'react';

const LoadingSpinner = ({ 

  size = 'medium', 

  color = 'primary',

  className = '' 

}) => {
  const sizes = {
    small: 'w-4 h-4',
    medium: 'w-8 h-8',
    large: 'w-12 h-12',
    xlarge: 'w-16 h-16'
  };

  const colors = {
    primary: 'text-primary-500',
    white: 'text-white',
    gray: 'text-gray-500'
  };

  return (
    <div className={`animate-spin rounded-full border-b-2 ${sizes[size]} ${colors[color]} ${className}`}></div>
  );
};

export default LoadingSpinner;