Download wp-calypso/client/jetpack-cloud/sections/comparison/header/index.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 526 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/comparison/header/index.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-cloud/sections/comparison/header/index.tsx
-
curl -L -o index.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/comparison/header/index.tsx
526 Bytes
| import { useTranslate } from 'i18n-calypso'; | |
| import FormattedHeader from 'calypso/components/formatted-header'; | |
| import { preventWidows } from 'calypso/lib/formatting'; | |
| import './style.scss'; | |
| const Header: React.FC = () => { | |
| const translate = useTranslate(); | |
| return ( | |
| <FormattedHeader | |
| className="header__main-title" | |
| headerText={ preventWidows( translate( 'Compare Jetpack bundles' ) ) } | |
| subHeaderText={ translate( 'Choose the best bundle for your site' ) } | |
| align="center" | |
| /> | |
| ); | |
| }; | |
| export default Header; | |