import { ExternalLink } from '@automattic/components'; import { useTranslate } from 'i18n-calypso'; import { TokenQRCode } from './index'; export const JetpackQRCodeLogin = ( { tokenState } ) => { const translate = useTranslate(); const steps = [ // translation: Link to the Jetpack App. translate( 'Open the {{link}}%(name)s App{{/link}} on your phone.', { args: { name: 'Jetpack', }, components: { link: ( ), }, } ), translate( 'Tap the Me tab.' ), translate( 'Tap the Scan Login Code option.' ), translate( 'Point your phone to the following QR code to scan it.' ), ]; const notice = translate( "Logging in via the Jetpack app is {{strong}}not available{{/strong}} if you've enabled two-step authentication on your WordPress.com account.", { components: { strong: , }, } ); return (

{ translate( 'Start with Jetpack app' ) }

    { steps.map( ( step, index ) => (
  1. { step }
  2. ) ) }

{ notice }

); };