summaryrefslogtreecommitdiff
path: root/src/components/Loading.js
blob: 37fcef5b30a2dd18013d4af70dacac6b3232e3ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import React from 'react';
import PropTypes from 'prop-types';

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;