import React from 'react'; import { render, Banner, useSelectedPaymentOptions, } from '@shopify/checkout-ui-extensions-react'; render('Checkout::Dynamic::Render', () => ( )); function Extension() { const options = useSelectedPaymentOptions(); if ( options.some( (option) => option.type === 'creditCard', ) ) { return ( All credit card transactions are secure ); } return null; }