import { jsx as r } from "react/jsx-runtime";
import { cn as t } from "../../lib/utils.js";
import { Button as m } from "./button.js";
function p({
  onClick: e,
  filled: n = !1,
  size: o = "default",
  Icon: a,
  buttonStyles: i,
  iconStyles: s
}) {
  const l = {
    sm: "size-3",
    default: "size-4",
    lg: "size-6"
  };
  return /* @__PURE__ */ r(
    m,
    {
      onClick: e,
      variant: "icon",
      size: o,
      className: t(i),
      stopPropagation: !0,
      children: /* @__PURE__ */ r(
        a,
        {
          fill: n ? "currentColor" : "none",
          className: t("text-primary-foreground", l[o], s)
        }
      )
    }
  );
}
export {
  p as IconButton
};
//# sourceMappingURL=icon-button.js.map
