UNPKG

fui-fancyui

Version:
12 lines (11 loc) 539 B
"use client"; import { jsx as n } from "react/jsx-runtime"; import i from "../../shared/ComponentAsWrapper/ComponentAsWrapper.js"; import p from "../../atoms/FancyActionWrapper/FancyActionWrapper.js"; function s(o) { const { WrapperComponent: t, type: a, children: r, onClick: e } = o; return t ? /* @__PURE__ */ n(i, { wrapper: t, children: r }) : a === "button" ? /* @__PURE__ */ n(p, { as: "button", onClick: e, children: r }) : /* @__PURE__ */ n(p, { as: "a", href: o.href, onClick: e, children: r }); } export { s as default };