import * as React from 'react'; import { observer } from 'mobx-react'; export interface ICheckboxProps { value?: string; checked: boolean; onClick?: () => void; label: any; style?: any; } @observer export default class FlexAlignedCheckbox extends React.Component< ICheckboxProps, {} > { render() { return (
{typeof this.props.label === 'function' ? this.props.label() : this.props.label}
); } }