import React from 'react'; import { v4 } from 'uuid'; import propTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.module.scss'; // Classes to merge in, depending on context const CONTEXT_CLASSES = { 'LEGACY': styles.contextLegacy }; export const RadioButtonContext = React.createContext(null); const RadioButton: React.FC = ({text=null, name, value, defaultChecked, checked, disabled, onChange}) => { const unique = v4(); return {context => (
)}
; } RadioButton.displayName = 'RadioButton'; RadioButton.propTypes = { text: propTypes.node, name: propTypes.string, value: propTypes.string, checked: propTypes.bool, disabled: propTypes.bool, }; export default RadioButton;