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
27
28
29
30
31
32
33
34
35
import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import styles from './style.module.css'
export default function Default({ color, className, style, size }) {
const circles = [...Array(12)].map((_, index) => (
<div key={index} style={{ background: `${color}`, width: size * 0.075, height: size * 0.075 }} />
))
return (
<div className={classNames(styles['lds-default'], className)} style={{ height: size, width: size, ...style }}>
{circles}
</div>
)
}
Default.propTypes = {
color: PropTypes.string,
size: PropTypes.number,
className: PropTypes.string,
style: PropTypes.object,
}
Default.defaultProps = {
color: '#7f58af',
size: 80,
className: '',
style: {},
}