2019-06-23 06:25:38 +00:00
|
|
|
import React from 'react';
|
|
|
|
import classNames from 'classnames';
|
|
|
|
import { CSSTransition } from 'react-transition-group';
|
2019-06-29 23:14:32 +00:00
|
|
|
import Spinner from '@/components/elements/Spinner';
|
2019-06-23 06:25:38 +00:00
|
|
|
|
|
|
|
export default ({ large, visible }: { visible: boolean; large?: boolean }) => (
|
|
|
|
<CSSTransition timeout={150} classNames={'fade'} in={visible} unmountOnExit={true}>
|
|
|
|
<div
|
|
|
|
className={classNames('absolute pin-t pin-l flex items-center justify-center w-full h-full rounded')}
|
|
|
|
style={{ background: 'rgba(0, 0, 0, 0.45)' }}
|
|
|
|
>
|
2019-06-29 23:14:32 +00:00
|
|
|
<Spinner large={large}/>
|
2019-06-23 06:25:38 +00:00
|
|
|
</div>
|
|
|
|
</CSSTransition>
|
|
|
|
);
|