import{t as e}from"./jsx-runtime-CiQ1k8xo.js";import{lt as t}from"./vscode-api-DjORcpSo.js";import{t as n}from"./tooltip-BBqUFIYI.js";import{t as r}from"./button-Bi7lGVi1.js";var i=t(),a=e();function o(e){let t=(0,i.c)(9),{children:o,color:s,disabled:c,tooltipContent:l,onClick:u}=e,d=c?`ghost`:s===void 0?`ghostMuted`:s,f=c?`text-token-text-secondary`:void 0,p;t[0]!==d||t[1]!==o||t[2]!==c||t[3]!==u||t[4]!==f?(p=(0,a.jsx)(`span`,{className:`-me-1.5 inline-flex`,children:(0,a.jsx)(r,{className:f,color:d,disabled:c,size:`composerSm`,onClick:u,children:o})}),t[0]=d,t[1]=o,t[2]=c,t[3]=u,t[4]=f,t[5]=p):p=t[5];let m=p;if(!c)return m;let h;return t[6]!==m||t[7]!==l?(h=(0,a.jsx)(n,{tooltipContent:l,children:m}),t[6]=m,t[7]=l,t[8]=h):h=t[8],h}export{o as t};
//# sourceMappingURL=pull-request-fix-button-BtnQrm3h.js.map