import React from 'react'; import { MessageDescriptor } from 'react-intl'; import classNames from 'classnames'; import { SKIN_DARK, COLOR_GREEN } from 'app/components/ui'; import { omit } from 'app/functions'; import { Color, Skin } from 'app/components/ui'; import styles from './form.scss'; import FormInputComponent from './FormInputComponent'; export default class Radio extends FormInputComponent< { color: Color; skin: Skin; label: string | MessageDescriptor; } & React.InputHTMLAttributes > { static defaultProps = { color: COLOR_GREEN, skin: SKIN_DARK, }; elRef = React.createRef(); render() { const { color, skin } = this.props; let { label } = this.props; label = this.formatMessage(label); const props = omit(this.props, ['color', 'skin', 'label']); return (