/** * External dependencies */ import { Button, PricingTable, PricingTableColumn, PricingTableHeader, PricingTableItem, ProductPrice, } from '@automattic/jetpack-components'; import { useConnection, useProductCheckoutWorkflow } from '@automattic/jetpack-connection'; import { __, sprintf } from '@wordpress/i18n'; import { useState } from 'react'; /** * Internal dependencies */ import { usePlan } from '../../hooks/use-plan'; const PricingPage = ( { onRedirecting } ) => { const { siteSuffix, adminUri, registrationNonce } = window.jetpackVideoPressInitialState; const { siteProduct, productPrice } = usePlan(); const { yearly: yearlyPrice } = productPrice; const { handleRegisterSite, userIsConnecting } = useConnection( { redirectUri: adminUri, from: 'jetpack-videopress', registrationNonce, } ); const [ isConnecting, setIsConnecting ] = useState( false ); const { run, hasCheckoutStarted } = useProductCheckoutWorkflow( { siteSuffix, productSlug: yearlyPrice?.slug, redirectUrl: adminUri, } ); const pricingItems = siteProduct.features.map( feature => ( { name: feature } ) ); return ( { __( 'Upload one video', 'jetpack-videopress-pkg' ) } } /> ); }; export default PricingPage;