/** * WordPress dependencies */ import { useSelect } from '@safe-wordpress/data'; /** * External dependencies */ import clsx from 'clsx'; import { SubscriptionRequiredPage } from '@nelio-content/components'; /** * Internal dependencies */ import './style.scss'; import { Plan } from '../plan'; import { AgencyPlan } from '../plan/agency-plan'; import { AccountInfo } from '../account-info'; import { Billing } from '../billing'; import { Sites } from '../sites'; import { store as NC_ACCOUNT } from '~/nelio-content-pages/account/store'; export const Layout = (): JSX.Element | null => { const account = useSelect( ( select ) => select( NC_ACCOUNT ).getAccount(), [] ); const isAccountReady = useSelect( ( select ) => select( NC_ACCOUNT ).hasFinishedResolution( 'getAccount' ), [] ); const isAgencySummary = useSelect( ( select ) => select( NC_ACCOUNT ).isAgencySummary(), [] ); if ( ! isAccountReady ) { return null; } if ( 'free' === account.plan ) { return (