import * as React from 'react'; import classnames from 'classnames'; import CircleSVG from '../../../svg/circle.svg'; import ExclamationSVG from '../../../svg/exclamation.svg'; import CompleteSVG from '../../../svg/complete.svg'; import SpinnerSVG from '../../../svg/spinner.svg'; import IReactComponentProps from '../../../common/structures/IReactComponentProps'; interface IProps extends IReactComponentProps { inProgress?: boolean; ready?: boolean; requiresAttention?: boolean; } export default class InstallerStepStatus extends React.Component { renderIcon () { if (!this.props.ready && !this.props.inProgress) { return ( ); } if (this.props.ready) { return ( ); } if (this.props.requiresAttention) { return ( ); } if (this.props.inProgress) { return ( ); } } render () { return ( {this.renderIcon()} ); } }