import { jsx as t } from "react/jsx-runtime";
import "../constants/chains.js";
import "ethers";
import "../logger.js";
import { cn as n } from "../utils/cn.js";
const d = ({
  tabs: s,
  activeTab: p,
  isEnabled: o = !0,
  onSelect: l
}) => s.length < 2 ? /* @__PURE__ */ t("span", { className: "w-full" }) : /* @__PURE__ */ t("nav", { className: "space-x-[10px] w-full", children: s.map((r) => {
  const e = p === r;
  return /* @__PURE__ */ t(
    "button",
    {
      onClick: () => l(r),
      disabled: !o && !e,
      className: n(
        "rounded-sw-md text-sw-label-md cursor-pointer py-[10px] px-sw-lg",
        !o && !e && "cursor-not-allowed opacity-50",
        e ? "bg-sw-gray-50 text-sw-gray-950" : "bg-transparent text-sw-gray-200"
      ),
      children: r.charAt(0).toUpperCase() + r.slice(1)
    },
    r
  );
}) });
export {
  d as WidgetTabs
};
//# sourceMappingURL=WidgetTabs.js.map
