mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
24 lines
537 B
JavaScript
24 lines
537 B
JavaScript
|
import { Button } from '@wordpress/components';
|
||
|
import { __ } from '@wordpress/i18n';
|
||
|
|
||
|
const Navigation = ( { setStep, currentStep } ) => {
|
||
|
return (
|
||
|
<div className="ppcp-r-navigation">
|
||
|
<Button
|
||
|
variant="tertiary"
|
||
|
onClick={ () => setStep( currentStep - 1 ) }
|
||
|
>
|
||
|
{ __( 'Back', 'woocommerce-paypal-payments' ) }
|
||
|
</Button>
|
||
|
<Button
|
||
|
variant="primary"
|
||
|
onClick={ () => setStep( currentStep + 1 ) }
|
||
|
>
|
||
|
{ __( 'Next', 'woocommerce-paypal-payments' ) }
|
||
|
</Button>
|
||
|
</div>
|
||
|
);
|
||
|
};
|
||
|
|
||
|
export default Navigation;
|