import * as React from 'react'; interface IColorPickerIconProps { color: string; } export class ColorPickerIcon extends React.Component< IColorPickerIconProps, {} > { constructor(props: IColorPickerIconProps) { super(props); this.render = this.render.bind(this); } public render() { const { color } = this.props; return ( {color === '#FFFFFF' && ( )} ); } }