import React from 'react' import { Check } from 'react-feather' import { buildClassName } from '../Util' import { ColorType } from '../interfaces' import css from './Checkbox.module.styl' interface Props extends React.DetailedHTMLProps, HTMLInputElement> { label?: string id: string type?: undefined radio?: boolean switch?: boolean color?: ColorType } export default class Checkbox extends React.Component { public render() { const props: Props = Object.assign({}, this.props) delete props.label delete props.type delete props.color delete props.switch delete props.radio const realType = this.props.radio ? 'radio' : 'checkbox' return ( ) } }