umami/components/common/Loading.js

22 lines
466 B
JavaScript
Raw Normal View History

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