ayongui
Version:
14 lines (13 loc) • 397 B
JavaScript
import { j as s } from "../../../react/jsx-runtime.mjs";
import "./index.less.mjs";
function u({ mode: i = "show", show: r, children: t, renderIf: e, renderElse: n }) {
if (i === "show")
return /* @__PURE__ */ s.jsx("div", { className: r ? "show" : "hide", children: t });
if (i === "if")
return r ? t : null;
if (i === "else")
return r ? e() : n();
}
export {
u as default
};