import{j as o,S as e,bB as r,h as a,T as m}from"./vendor-ClLR6ncd.js";import{J as u}from"./index-OtVJl4GC.js";function s(){var n;const t=u();return t.isSuccess&&((n=t.data)==null?void 0:n.autoCommit)===!1}const c="Changes will take effect immediately and do not need a commit to be done",h={color:"warning"};function g({Icon:t,disabled:n,...i}){return!s()||n?o.jsx(t,{...i}):o.jsx(m,{placement:"right",title:c,children:o.jsx(t,{...i,...h})})}function l({children:t}){if(!s())return t;const i=typeof t=="string"?o.jsx(a,{variant:"inherited",children:t}):t;return o.jsxs(e,{direction:"row",spacing:1,alignItems:"center",children:[i,o.jsx(g,{Icon:r})]})}export{l as F,g as a};
