import{d as r,o as s,e as t,p as a,n as i,f as o,a as n,D as p,t as d,ac as c}from"./BvNnk7SS.js";const u=["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=r({__name:"UiEditorMenuItem",props:{pressed:{type:Boolean},disabled:{type:Boolean},shortcut:{},label:{},icon:{}},setup(h){return(e,l)=>(s(),t("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]=c(()=>{},["prevent"]))},[a(e.$slots,"default",{},()=>[e.icon?(s(),t("div",{key:0,class:i(e.icon),op50:""},null,2)):o("",!0),n("div",b,[a(e.$slots,"label",{},()=>[p(d(e.label),1)])]),a(e.$slots,"shortcut",{},()=>[e.shortcut?(s(),t("div",f,d(e.shortcut),1)):o("",!0)]),e.pressed?(s(),t("div",m)):o("",!0)])],40,u))}});export{k as _};
