/** * LoadingBtn — native loading button that completely bypasses the WP Button * component so React can freely update children (spinner + text) without * any component interference that causes text duplication. */ const spinnerStyle = ( light = false ) => ( { display: 'inline-block', width: 16, height: 16, border: `2px solid ${ light ? 'rgba(255,255,255,0.35)' : 'rgba(0,0,0,0.15)' }`, borderTopColor: light ? '#fff' : 'currentColor', borderRadius: '50%', animation: 'aime-spin 0.6s linear infinite', flexShrink: 0, } ); const LoadingBtn = ( { light, primary, children, style: extra } ) => { const filled = primary || light; return ( ); }; export default LoadingBtn;