import { useId } from "@radix-ui/react-id"; import * as RadioGroupPrimitive from "@radix-ui/react-radio-group"; import type { ReactNode } from "react"; import classNames from "@calcom/lib/classNames"; type RadioAreaProps = RadioGroupPrimitive.RadioGroupItemProps & { children: ReactNode; classNames?: { container?: string }; }; const RadioArea = ({ children, className, classNames: innerClassNames, ...props }: RadioAreaProps) => { const radioAreaId = useId(); const id = props.id ?? radioAreaId; return (
); }; const RadioAreaGroup = ({ children, className, onValueChange, ...passThroughProps }: RadioGroupPrimitive.RadioGroupProps) => { return ( {children} ); }; const Item = RadioArea; const Group = RadioAreaGroup; export { RadioArea, RadioAreaGroup, Item, Group };