2023-10-25 14:39:43 +00:00
/ * *
* 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 } ) => (
< Text
variant = "caption"
className = "woocommerce-task__caption is-tos"
size = "12"
lineHeight = "16px"
style = { { display : 'block' } }
>
{ interpolateComponents ( {
mixedString : sprintf (
2023-11-16 11:15:11 +00:00
/* translators: button text, most likely something like 'Install and Enable' or Continue setup' */
2023-10-25 14:39:43 +00:00
_ _ (
'By clicking "%s," you agree to our {{tosLink}}Terms of Service{{/tosLink}} and have read our {{privacyPolicyLink}}Privacy Policy{{/privacyPolicyLink}}.' ,
'woocommerce'
) ,
buttonText
) ,
components : {
tosLink : (
< Link
href = { 'https://wordpress.com/tos/' }
target = "_blank"
type = "external"
>
< > < / >
< / L i n k >
) ,
privacyPolicyLink : (
< Link
href = { 'https://automattic.com/privacy/' }
target = "_blank"
type = "external"
>
< > < / >
< / L i n k >
) ,
} ,
} ) }
< / T e x t >
) ;