mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 18:16:38 +08:00
23 lines
369 B
JavaScript
23 lines
369 B
JavaScript
import { Button } from '@wordpress/components';
|
|
|
|
import { Action } from '../Elements';
|
|
|
|
const ControlButton = ( {
|
|
type = 'secondary',
|
|
isBusy,
|
|
onClick,
|
|
buttonLabel,
|
|
} ) => (
|
|
<Action>
|
|
<Button
|
|
className="small-button"
|
|
isBusy={ isBusy }
|
|
variant={ type }
|
|
onClick={ onClick }
|
|
>
|
|
{ buttonLabel }
|
|
</Button>
|
|
</Action>
|
|
);
|
|
|
|
export default ControlButton;
|