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

import s from './Loading.module.scss';

type Props = {
  height?: string;
};

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

export default Loading;