"use client";
import { jsx as o } from "react/jsx-runtime";
import { cn as l } from "../../utils/cn/cn.es.js";
import s from "../../components/IconButton/iconButton.module.css";
import { Icon as p } from "../Icon/Icon.es.js";
const b = ({
  iconName: t,
  variant: n = "emphasis",
  size: r = "md",
  as: a = "button",
  disabled: e = !1,
  ...m
}) => {
  const c = s[n] || "", i = s[r] || "";
  return /* @__PURE__ */ o(a, { ...m, className: l(s.button, c, i), disabled: e, children: /* @__PURE__ */ o("div", { className: s.iconWrap, children: /* @__PURE__ */ o(p, { name: t }) }) });
};
export {
  b as IconButton
};
