import{createVNode as e,defineComponent as t}from"vue";var n=t({name:`PresetPanel`,props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(t){return()=>t.presets.length?e(`div`,{class:`${t.prefixCls}-presets`},[e(`ul`,null,[t.presets.map(({label:n,value:r},i)=>e(`li`,{key:i,onClick:e=>{e.stopPropagation(),t.onClick(r)},onMouseenter:()=>{t.onHover?.(r)},onMouseleave:()=>{t.onHover?.(null)}},[n]))])]):null}});export{n as default};