mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
16 lines
344 B
JavaScript
16 lines
344 B
JavaScript
import { __ } from '@wordpress/i18n';
|
|
import { Button } from '@wordpress/components';
|
|
|
|
const LearnMore = ( { url } ) => {
|
|
if ( ! url || '#' === url ) {
|
|
return null;
|
|
}
|
|
|
|
return (
|
|
<Button href={ url } variant="tertiary" target="_blank">
|
|
{ __( 'Learn more', 'woocommerce-paypal-payments' ) }
|
|
</Button>
|
|
);
|
|
};
|
|
|
|
export default LearnMore;
|