import{y as e}from"./utils-BakkG8Vx.js";import{d as t,m as n,s as r,t as i}from"./hooks.module-5xe-uC6c.js";import{Dt as a}from"./content_renderer-CoENEE63.js";import{t as o}from"./jsxRuntime.module--xb8gfv5.js";import{R as s}from"./hooks-CSTgmcXO.js";t();var c=e();function l({text:e,icon:t,className:l,triggerCommand:u,titlePosition:d,noIconActionClass:f,frame:p,active:m,disabled:h,...g}){let _=i(null),[v,y]=r();return s(_,{title:v?.length?`${e} (${v?.join(`,`)})`:e,placement:d??`bottom`,fallbackPlacements:[d??`bottom`],trigger:c?`focus`:`hover focus`,animation:!1}),n(()=>{u&&a.getAction(u,!0).then(e=>y(e?.effectiveShortcuts))},[u]),o(`button`,{ref:_,class:`${l??``} ${f?`btn`:`icon-action`} ${t} ${p?`btn btn-primary`:``} ${h?`disabled`:``} ${m?`active`:``}`,"data-trigger-command":u,disabled:h,...g})}export{l as t};