LoadingDots.tsx 499 B

1234567891011121314151617181920212223
  1. import styles from '@/styles/loading-dots.module.css';
  2. const LoadingDots = ({
  3. color = '#000',
  4. style = 'small',
  5. }: {
  6. color: string;
  7. style: string;
  8. }) => {
  9. return (
  10. <span className={style == 'small' ? styles.loading2 : styles.loading}>
  11. <span style={{ backgroundColor: color }} />
  12. <span style={{ backgroundColor: color }} />
  13. <span style={{ backgroundColor: color }} />
  14. </span>
  15. );
  16. };
  17. export default LoadingDots;
  18. LoadingDots.defaultProps = {
  19. style: 'small',
  20. };