import React, { PropTypes } from 'react'; import classNames from 'classnames'; import { colors, skins, SKIN_DARK, COLOR_GREEN } from 'components/ui'; import styles from './form.scss'; import FormInputComponent from './FormInputComponent'; export default class Checkbox extends FormInputComponent { static displayName = 'Checkbox'; static propTypes = { color: PropTypes.oneOf(colors), skin: PropTypes.oneOf(skins), label: PropTypes.oneOfType([ PropTypes.shape({ id: PropTypes.string }), PropTypes.string ]).isRequired }; static defaultProps = { color: COLOR_GREEN, skin: SKIN_DARK }; render() { const { color, skin } = this.props; let { label } = this.props; label = this.formatMessage(label); return (