import{__rest as o,__spreadArray as i,__assign as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{useCallback as e}from"react";import{Radio as t}from"../Radio/Radio.js";import{RadioAndCheckboxGroup as a}from"../RadioAndCheckboxGroup/RadioAndCheckboxGroup.js";var d=function(o,i){return i===o},c=function(c){var m=c.onChange,p=c.size,s=void 0===p?"medium":p,u=c.spacing,f=void 0===u?"normal":u,l=c.direction,g=void 0===l?"vertical":l,v=o(c,["onChange","size","spacing","direction"]),h=e((function(o){return function(n){for(var r=[],e=1;e<arguments.length;e++)r[e-1]=arguments[e];return null==m?void 0:m.apply(void 0,i([o],r,!1))}}),[m]);return r(a,n({},v,{size:s,spacing:f,direction:g,component:t,getOnChangeHandler:h,getOptionChecked:d}))};export{c as RadioGroup};
