import * as React from 'react'; import Radio from './radio'; import { RadioChangeEvent } from './interface'; import { AbstractCheckboxProps } from '../checkbox/Checkbox'; import { ConfigContext } from '../config-provider'; import { RadioOptionTypeContextProvider } from './context'; export type RadioButtonProps = AbstractCheckboxProps; const RadioButton = (props: RadioButtonProps, ref: React.Ref) => { const { getPrefixCls } = React.useContext(ConfigContext); const { prefixCls: customizePrefixCls, ...radioProps } = props; const prefixCls = getPrefixCls('radio', customizePrefixCls); return ( ); }; export default React.forwardRef(RadioButton);