import { jsx } from "react/jsx-runtime";
import { DSRadioGroup } from "@elliemae/ds-form";
import {
  Controller
} from "react-hook-form";
const RadioGroup = ({
  name,
  rules = {},
  defaultValue,
  ...rest
}) => /* @__PURE__ */ jsx(
  Controller,
  {
    name,
    rules,
    defaultValue,
    render: ({ field: { value, ...restProps } }) => /* @__PURE__ */ jsx(DSRadioGroup, { ...rest, ...restProps, activeValue: value })
  }
);
export {
  RadioGroup
};
