mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
34 lines
959 B
JavaScript
Executable File
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; |