import { getPlan, PLAN_FREE } from '@automattic/calypso-products'; import { addQueryArgs } from '@wordpress/url'; import { useTranslate } from 'i18n-calypso'; import { useRef } from 'react'; import { useDispatch } from 'react-redux'; import FormattedHeader from 'calypso/components/formatted-header'; import Main from 'calypso/components/main'; import { getPlanCartItem } from 'calypso/lib/cart-values/cart-items'; import PlansFeaturesMain from 'calypso/my-sites/plans-features-main'; import { recordTracksEvent } from 'calypso/state/analytics/actions'; import type { Plan } from '@automattic/calypso-products'; import type { MinimalRequestCartProduct } from '@automattic/shopping-cart'; import './style.scss'; interface HeaderProps { paidDomainName?: string; } interface JetpackAppPlansProps { paidDomainName?: string; originalUrl: string; } const Header: React.FC< HeaderProps > = ( { paidDomainName } ) => { const translate = useTranslate(); return (
{ translate( 'With your annual plan, you’ll get %(domainName)s {{strong}}free for the first year{{/strong}}.', { args: { domainName: paidDomainName, }, components: { strong: }, } ) }
{ translate( 'You’ll also unlock advanced features that make it easy to build and grow your site.' ) }
> ) : ({ translate( 'See and compare the features available on each WordPress.com plan.' ) }
) }