2020-03-05 20:17:00 +01:00

34 lines
959 B
JavaScript
Executable File

import React from 'react'
import style from './styles.less'
class CoreLoader extends React.PureComponent {
render(){
const { type } = this.props;
if ( type == 'circle') {
return (
<div className={style.newloader}>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
);
}
if ( type == 'box') {
return(
<div>
<div className={style.loader}>
<svg viewBox="0 0 80 80">
<rect x="8" y="8" width="64" height="64"></rect>
</svg>
</div>
</div>
)
}
return null;
}
}
export default CoreLoader;