"use client";
import { j as e } from "./index.esm38.js";
import o from "react";
import { TagGroupItemButton as m } from "./index.esm94.js";
import { isTagGroupItem as t } from "./index.esm86.js";
import { Tag as n } from "./index.esm11.js";
function p({ tag: r, baseTagProps: i }) {
  return t(r) ? r.href ? /* @__PURE__ */ e.jsx(n, { ...i, href: r.href, children: r.label }) : r.onClick ? /* @__PURE__ */ e.jsx(m, { tag: r, baseTagProps: i }) : /* @__PURE__ */ e.jsx(n, { ...i, children: r.label }) : typeof r == "object" && o.isValidElement(r) ? /* @__PURE__ */ e.jsx(e.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(n, { ...i, children: r });
}
export {
  p as TagGroupItemView
};
//# sourceMappingURL=index.esm49.js.map
