"use strict";const T=require("./jsx-runtime-evvPGacs.cjs"),e=require("./Toggle-r0neBlcF.cjs"),O=require("./Link-nshTd3i9.cjs"),i=require("./css-SuMNMmEe.cjs"),a=require("react"),l=a.createContext({onClick:()=>{},selected:""}),m=()=>a.useContext(l),L=({children:c,onChange:t,level:o,iconSpacing:s,value:r=""})=>{const n=u=>t==null?void 0:t(u);return T.jsxRuntimeExports.jsx(l.Provider,{value:{onClick:n,selected:r,level:o,iconSpacing:s},children:c})},C=(c,t)=>o=>{const{itemKey:s,className:r,onClick:n,size:u,...S}={...t,...o},{onClick:d,selected:k,level:_,iconSpacing:I}=m(),M=p=>{d(s),n==null||n(p)},j=k===s;return T.jsxRuntimeExports.jsx(c,{level:_,...S,onClick:M,variant:"text",className:i.CSS(i.CSS.B("menu-item"),i.CSS.selected(j),r),size:u??I})},E=C(e.Button,{noWrap:!0}),N=C(e.Icon),R=C(O.Link,{noWrap:!0}),x=E;x.Icon=N;x.Link=R;const q=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:e.CONTEXT_SELECTED,CONTEXT_TARGET:e.CONTEXT_TARGET,ContextMenu:e.ContextMenu,CoreItem:E,Item:x,Menu:L,MenuContext:l,useContextMenu:e.useContextMenu,useMenuContext:m},Symbol.toStringTag,{value:"Module"}));exports.external=q;
//# sourceMappingURL=external-_947hnUw.cjs.map
