import React from 'react';
import {
render,
Banner,
useAvailablePaymentOptions,
} from '@shopify/checkout-ui-extensions-react';
render('Checkout::Dynamic::Render', () => (
));
function Extension() {
const options = useAvailablePaymentOptions();
if (
options.some(
(option) => option.type === 'wallet',
)
) {
return (
Select an express payment method for
faster checkout
);
}
return null;
}