openreplay/frontend/app/components/ui/Loader/Loader.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

15 lines
567 B
JavaScript

import React from 'react';
import cn from 'classnames';
import styles from './loader.module.css';
import AnimatedSVG, { ICONS } from 'Shared/AnimatedSVG/AnimatedSVG';
const Loader = React.memo(({ className = '', loading = true, children = null, size = 30, style = { minHeight: '150px' } }) => (!loading ? children :
<div className={ cn(styles.wrapper, className) } style={style}>
{/* <div className={ styles.loader } data-size={ size } /> */}
<AnimatedSVG name={ICONS.LOADER} size={size} />
</div>
));
Loader.displayName = 'Loader';
export default Loader;