summaryrefslogtreecommitdiff
path: root/src/components/Loading.js
blob: 7949a4b5267fa6b111aaa1bb11bee527a35ba623 (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.scss';

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;