import React from "react"; import { RadioButtonProps } from "./types"; import { Button } from "@shared/components/button"; import { cx } from "@shared/utils"; export const RadioButton: React.FC = props => { const { name, value, label, subText, checked, onChange, className, variant = "circle", hasError = false, labelProps = {}, "data-cy": dataCy, labelClassName = "", disabled, ...rest } = props; const handleChange = () => onChange?.(value || name); return ( ); }; RadioButton.displayName = "RadioButton"; export type { RadioButtonProps };