summaryrefslogtreecommitdiff
path: root/src/components/Loading.tsx
blob: 2db01daf42bc34a28b0ab3c34fd47fca247e0bf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';

import s0 from './Loading.module.css';

type Props = {
  height?: string;
};

const Loading = ({ height }: Props) => {
  const style = height ? { height } : {};
  return (
    <div className={s0.loading} style={style}>
      <div className={s0.pulse} />
    </div>
  );
};

export default Loading;