2020-08-28 08:45:37 +02:00
|
|
|
import React from 'react';
|
2021-02-16 13:11:49 +01:00
|
|
|
import PropTypes from 'prop-types';
|
2020-08-28 08:45:37 +02:00
|
|
|
import classNames from 'classnames';
|
|
|
|
import styles from './Loading.module.css';
|
|
|
|
|
2022-08-30 09:03:22 +02:00
|
|
|
function Loading({ className, overlay = false }) {
|
2020-08-28 08:45:37 +02:00
|
|
|
return (
|
2022-08-30 09:03:22 +02:00
|
|
|
<div className={classNames(styles.loading, { [styles.overlay]: overlay }, className)}>
|
2020-08-28 08:45:37 +02:00
|
|
|
<div />
|
|
|
|
<div />
|
|
|
|
<div />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2021-02-16 13:11:49 +01:00
|
|
|
|
|
|
|
Loading.propTypes = {
|
|
|
|
className: PropTypes.string,
|
2022-08-30 09:03:22 +02:00
|
|
|
overlay: PropTypes.bool,
|
2021-02-16 13:11:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
export default Loading;
|