import React from 'react'; import { CSSTransition } from 'react-transition-group'; import { Spinner } from 'components/ui'; import './InlineSpinner.scss'; export const InlineSpinner: React.SFC<{ active: boolean; text?: string; }> = ({ active, text }) => ( {/* TODO: when react-transition-group v2.3 releases, use '-done' classes instead of conditional 'active' class https://github.com/reactjs/react-transition-group/issues/274 */}
{text}
);