import { jsx as f } from "react/jsx-runtime";
import i from "../hooks/useSingleToggleGroup.js";
import { ToggleGroup as c } from "../TogglePrimitive.js";
import { useCallback as p } from "react";
import { toggleGroupVariants as d } from "../types/ToggleGroupVariant.js";
const h = ({ shape: e = "default", size: t = "default", variant: a = "default", children: r, ...o }) => {
  const { defaultValue: u } = o, { activeValue: g, toggleValue: l, extractedProps: n } = i(o), m = p(
    (s) => {
      l(s);
    },
    [l]
  );
  return /* @__PURE__ */ f(
    c,
    {
      ...n,
      className: d[e],
      value: g || "",
      defaultValue: u,
      onValueChange: m,
      shape: e,
      variant: a,
      size: t,
      type: "single",
      children: r
    }
  );
};
export {
  h as default
};
//# sourceMappingURL=ToggleSingleGroup.js.map
