sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
21 lines (20 loc) • 1.05 kB
JavaScript
import { jsx } from "react/jsx-runtime";
import { c } from "react-compiler-runtime";
import { MenuGroup as MenuGroup$1 } from "@sanity/ui";
import { ConditionalWrapper, Tooltip } from "./generate-help-url.esm.mjs";
const MenuGroup = (props) => {
const $ = c(8), {
tooltipProps
} = props;
let t0;
$[0] !== tooltipProps ? (t0 = (children) => /* @__PURE__ */ jsx(Tooltip, { content: tooltipProps?.content, portal: !0, ...tooltipProps, children: /* @__PURE__ */ jsx("div", { children }) }), $[0] = tooltipProps, $[1] = t0) : t0 = $[1];
const renderWrapper = t0, t1 = !!tooltipProps;
let t2;
$[2] !== props ? (t2 = /* @__PURE__ */ jsx(MenuGroup$1, { ...props, fontSize: 1, padding: 3 }), $[2] = props, $[3] = t2) : t2 = $[3];
let t3;
return $[4] !== renderWrapper || $[5] !== t1 || $[6] !== t2 ? (t3 = /* @__PURE__ */ jsx(ConditionalWrapper, { condition: t1, wrapper: renderWrapper, children: t2 }), $[4] = renderWrapper, $[5] = t1, $[6] = t2, $[7] = t3) : t3 = $[7], t3;
};
export {
MenuGroup
};
//# sourceMappingURL=MenuGroup.mjs.map