import * as React from 'react'; import { ValidationState } from '../../models/Validation'; import { Colors } from '../../models/colors'; import { leftDot } from './withLeftDot.style'; interface WithLeftDotProps { valid: ValidationState; palette?: Colors; customStyle?: any; hideLeftDot?: boolean; } class WithLeftDot extends React.PureComponent { render() { return this.props.hideLeftDot ? ( this.props.children ) : (
{this.props.children}
); } } export default WithLeftDot;