import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Icon from '../icon/component'; import styles from './styles'; import cx from 'classnames'; export default class Checkbox extends Component { constructor(props) { super(props); this.onChange = props.onChange; this.handleChange = this.handleChange.bind(this); } handleChange() { this.onChange(); } render() { const { ariaLabel, ariaLabelledBy, ariaDesc, ariaDescribedBy } = this.props; return (
{ this.props.checked ? : }
); } }