aboutsummaryrefslogtreecommitdiff
path: root/src/components/Loading/Loading.tsx
blob: fac00494302d15298786ba8d8b829a64d69ff85d (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 CircularProgress from '@material-ui/core/CircularProgress';
import Message from '../Message/Message';

interface PropTypes {
  tagline?: string;
  message?: string;
}

const Loading: React.FC<PropTypes> = React.memo(({ tagline, message }) => {
  return (
    <Message tagline={tagline} message={message}>
      <CircularProgress color="primary" />
    </Message>
  );
});

export default Loading;