import{j as i,Q as s,Z as e,eT as a,Y as x,aq as u}from"./app-BgLa5dit.js";const k="_iconButton_1bc9j_1",r="_iconWithText_1bc9j_5",g="_svg_1bc9j_5",j="_iconOnly_1bc9j_14",t={iconButton:k,iconWithText:r,svg:g,iconOnly:j};function _(n){let c=`d-flex ${n.className} ${t.iconButton}`;n.children?c+=`ps-2 text-nowrap ${t.iconWithText}`:c+=`p-1 ${t.iconOnly}`;const o=i.jsx(s,{svg:a,className:`align-self-center svg-container ${t.svg}`,size:e.Small});function l(m){u.isFunction(n.onClick)&&n.onClick(m)}return n.appLink?i.jsxs(x,{appLink:n.appLink,className:"d-inline-flex align-items-center",onClick:n.onClick,children:[i.jsx(s,{svg:a,size:e.Small}),i.jsx("span",{className:"ms-1",children:`Back${n.backToName?` to ${n.backToName}`:""}`})]}):i.jsxs("button",{className:c,onClick:l,children:[o,i.jsx("div",{className:"ps-2",children:n.children})]})}export{_ as B};
//# sourceMappingURL=DKjyIjnJ.chunk.js.map
