import React from 'react';
import { Radio } from '@cloudflare/component-radio';
import { Base, BaseProps } from './Base';

export type RadioProps = Omit<
  React.ComponentProps<typeof Radio>,
  'placeholder'
>;

export default function FormRadio<ValueType>(
  props: BaseProps<RadioProps, ValueType>
) {
  return (
    <Base<RadioProps, ValueType>
      Component={Radio}
      display="inline-block"
      {...props}
    />
  );
}
