import*as r from"react";import{Button as m}from"@redocly/theme/components/Button/Button";import c from"../../../../../client/app/CircularProgress";function f({loading:i,children:o,onClick:e,...t}){const n=a=>{!t.disabled&&e&&e(a)};return r.createElement(m,{onClick:n,size:"large",...t},i?r.createElement(c,{size:18}):o)}export{f as ButtonWithLoading};
