import React, { FC } from 'react' import { __ } from '@wordpress/i18n' import { Notice } from '@wordpress/ui' import Steps from './Steps' import { tipsDetails } from './tipsDetails' const CheckoutStatus: FC<{ active: boolean }> = ({ active }) => { // Translated up front: the minifier would merge two calls in a ternary into __(active ? a : b), which make-pot cannot read const blocks = __( 'Your checkout already uses blocks.', 'posten-bring-checkout' ) const classic = __( 'Your checkout uses the classic checkout. It works today, but new checkout features from WooCommerce come to the block checkout.', 'posten-bring-checkout' ) return ( {active ? blocks : classic} ) } const WhyMoveNow: FC = () => (

{__('Why move now', 'posten-bring-checkout')}

{__( 'Your customers keep the same Posten Bring delivery options when you switch.', 'posten-bring-checkout' )}

) const HowToSwitch: FC = () => ( ) /** * Why the merchant should move to the block checkout, and how to switch to it. */ export const BlockCheckoutStory: FC = () => { const active = tipsDetails().checkoutBlockActive return ( <> {!active && } ) }