Download wp-calypso/client/sites/overview/components/hosting-overview.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.6 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/overview/components/hosting-overview.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/sites/overview/components/hosting-overview.tsx
-
curl -L -o hosting-overview.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/sites/overview/components/hosting-overview.tsx
1.6 kB
| import { useTranslate } from 'i18n-calypso'; | |
| import { FC } from 'react'; | |
| import NavigationHeader from 'calypso/components/navigation-header'; | |
| import { isMigrationInProgress } from 'calypso/data/site-migration'; | |
| import { isNotAtomicJetpack } from 'calypso/sites-dashboard/utils'; | |
| import { useSelector } from 'calypso/state'; | |
| import { getSelectedSite } from 'calypso/state/ui/selectors'; | |
| import ActiveDomainsCard from './active-domains-card'; | |
| import MigrationOverview from './migration-overview'; | |
| import PlanCard from './plan-card'; | |
| import PlanCreditNotice from './plan-credit-notice'; | |
| import QuickActionsCard from './quick-actions-card'; | |
| import SiteBackupCard from './site-backup-card'; | |
| import SupportCard from './support-card'; | |
| import './style.scss'; | |
| const HostingOverview: FC = () => { | |
| const site = useSelector( getSelectedSite ); | |
| const translate = useTranslate(); | |
| if ( site ) { | |
| if ( isMigrationInProgress( site ) ) { | |
| return <MigrationOverview site={ site } />; | |
| } | |
| } | |
| const isJetpackNotAtomic = site && isNotAtomicJetpack( site ); | |
| const subtitle = isJetpackNotAtomic | |
| ? translate( 'Get a quick glance at your plans and upgrades.' ) | |
| : translate( 'Get a quick glance at your plans, storage, and domains.' ); | |
| return ( | |
| <div className="hosting-overview"> | |
| <NavigationHeader | |
| className="hosting-overview__navigation-header" | |
| title={ translate( 'Overview' ) } | |
| subtitle={ subtitle } | |
| /> | |
| <PlanCreditNotice /> | |
| <PlanCard /> | |
| <QuickActionsCard /> | |
| <ActiveDomainsCard /> | |
| <SiteBackupCard /> | |
| <SupportCard /> | |
| </div> | |
| ); | |
| }; | |
| export default HostingOverview; | |