/** * External dependencies */ import { Text } from '@woocommerce/experimental'; import interpolateComponents from '@automattic/interpolate-components'; import { __, sprintf } from '@wordpress/i18n'; import { Link } from '@woocommerce/components'; export const TermsOfService = ( { buttonText } ) => ( { interpolateComponents( { mixedString: sprintf( /* translators: button text, most likely something like 'Install and Enable' or Continue setup' */ __( 'By clicking "%s," you agree to our {{tosLink}}Terms of Service{{/tosLink}} and have read our {{privacyPolicyLink}}Privacy Policy{{/privacyPolicyLink}}.', 'woocommerce' ), buttonText ), components: { tosLink: ( <> ), privacyPolicyLink: ( <> ), }, } ) } );