import { useState as d, useCallback as f } from "react";
function V(o) {
  const { defaultValues: a = [], value: l, onChange: e, ...u } = o, [r, n] = d(a), t = l !== void 0, c = t ? l : r || [], i = f(
    (s) => {
      t || n(s), e == null || e(s);
    },
    [t, e]
  );
  return { activeValues: c, toggleValue: i, extractedProps: u };
}
export {
  V as default
};
//# sourceMappingURL=useMultipleToggleGroup.js.map
