import CircularProgress from 'material-ui/CircularProgress'; import * as React from 'react'; const CIRCULAR_PROGRESS_SIZE = 40; const CIRCULAR_PROGRESS_THICKNESS = 5; export interface LoadingProps { isLoading: boolean; content: React.ReactNode; } export const Loading = (props: LoadingProps) => { if (props.isLoading) { return (
); } else { return
{props.content}
; } };