/** * WordPress dependencies */ import { useSelect } from '@safe-wordpress/data'; /** * Internal dependencies */ import './style.scss'; import { store as NC_ACCOUNT } from '~/nelio-content-pages/account/store'; import { Explanation } from './explanation'; import { Title } from './title'; import { CancelSubscriptionAction, ReactivateSubscriptionAction, TweetAction, UpgradeSubscription, } from '../actions'; export const Plan = (): JSX.Element | null => { const account = useSelect( ( select ) => select( NC_ACCOUNT ).getAccount(), [] ); if ( account.plan === 'free' ) { return null; } const { mode, state, plan, period } = account; return (