import{d as i,i as s,o as t,b as a,e as o,f as r,n,an as p,t as d,aw as u}from"./Dih1Xbo1.js";const c=["data-state","disabled","data-label"],b={class:"flex-1 text-left first-letter:capitalize"},f={key:0,class:"text-xs opacity-50"},m={key:1,class:"i-lucide-check text-green-500"},k=i({__name:"UiEditorMenuItem",props:{pressed:{type:Boolean},disabled:{type:Boolean},shortcut:{},label:{},icon:{}},setup(h){return(e,l)=>(t(),s("button",{"data-state":e.pressed?"on":"off",disabled:e.disabled?!0:void 0,class:"BLOCK_HANDLE_MENU_ITEM","data-label":e.label,onMousedown:l[0]||(l[0]=u(()=>{},["prevent"]))},[a(e.$slots,"default",{},()=>[e.icon?(t(),s("div",{key:0,class:n(e.icon),op50:""},null,2)):o("",!0),r("div",b,[a(e.$slots,"label",{},()=>[p(d(e.label),1)])]),a(e.$slots,"shortcut",{},()=>[e.shortcut?(t(),s("div",f,d(e.shortcut),1)):o("",!0)]),e.pressed?(t(),s("div",m)):o("",!0)])],40,c))}});export{k as _};
