blob: 3547d0352c5270b488611b29c27c1afb1da06eb1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import PropTypes from 'prop-types';
import React from 'react';
import s0 from './Loading.module.css';
const Loading = ({ height }) => {
const style = height ? { height } : {};
return (
<div className={s0.loading} style={style}>
<div className={s0.pulse} />
</div>
);
};
Loading.propTypes = {
height: PropTypes.string,
};
export default Loading;
|