"use strict";const r=require("./Menu-BZ6ZGIv3.cjs"),u=require("./jsx-runtime-nZSsnGb7.cjs");require("@synnaxlabs/x");const e=require("./css-CloSmhZB.cjs");;/* empty css                   */const v=require("./Box-CNUz5BsV.cjs"),m=require("./Copy-BgRUUzWz.cjs"),i=require("./Animated-B_N04fe6.cjs"),c=({className:n,padded:t=!1,color:o,...s})=>(t===!0&&(t="center"),u.jsxRuntimeExports.jsx(v.Box$1,{className:e.CSS(e.CSS.B("divider"),t!==!1&&e.CSS.BM("divider","padded"),typeof t=="string"&&e.CSS.loc(t),n),borderColor:o,color:o,...s})),p=Object.freeze(Object.defineProperty({__proto__:null,Divider:c},Symbol.toStringTag,{value:"Module"})),M=()=>u.jsxRuntimeExports.jsx(c,{className:e.CSS.BE("menu","divider"),x:!0,padded:!0}),j=({itemKey:n,className:t,onClick:o,size:s,...C})=>{const{onClick:l,selected:S,level:x="p",gap:a,background:E}=r.useContext(),T=_=>{l(n),o?.(_)},d=S===n;return u.jsxRuntimeExports.jsx(m.Button,{contrast:E,level:x,overflow:"nowrap",onClick:T,variant:"text",className:e.CSS(e.CSS.B("menu-item"),e.CSS.selected(d),t),size:s,gap:a,propagateClick:!0,...C})},N=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_MENU_CLASS:i.CONTEXT_MENU_CLASS,CONTEXT_SELECTED:i.CONTEXT_SELECTED,CONTEXT_TARGET:i.CONTEXT_TARGET,ContextMenu:r.ContextMenu,Divider:M,Item:j,Menu:r.Menu,useContext:r.useContext,useContextMenu:r.useContextMenu},Symbol.toStringTag,{value:"Module"}));exports.Divider=c;exports.Divider$1=p;exports.external=N;
