File size: 592 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import * as React from 'react';
import Button, { ButtonProps } from './button';

function CheckoutNextStepButton( {
	value,
	onClick,
	ariaLabel,
	...props
}: CheckoutNextStepButtonProps & ButtonProps & React.ButtonHTMLAttributes< HTMLButtonElement > ) {
	return (
		<Button
			className="checkout-next-step-button"
			onClick={ onClick }
			buttonType="primary"
			aria-label={ ariaLabel }
			{ ...props }
		>
			{ value }
		</Button>
	);
}

interface CheckoutNextStepButtonProps {
	value: React.ReactNode;
	onClick: () => void;
	ariaLabel: string;
}

export default CheckoutNextStepButton;