Download wp-calypso/client/me/developer/features/studio-card.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/developer/features/studio-card.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/developer/features/studio-card.tsx
-
curl -L -o studio-card.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/developer/features/studio-card.tsx
1.17 kB
| import { Card } from '@automattic/components'; | |
| import { localizeUrl } from '@automattic/i18n-utils'; | |
| import { useTranslate } from 'i18n-calypso'; | |
| import { useHandleClickLink } from './use-handle-click-link'; | |
| import './style.scss'; | |
| export const StudioCard = () => { | |
| const translate = useTranslate(); | |
| const handleClickLink = useHandleClickLink(); | |
| return ( | |
| <Card className="developer-features-list__item"> | |
| <div className="developer-features-list__item-tag">{ translate( 'New' ) }</div> | |
| <div className="developer-features-list__item-title"> | |
| { translate( 'Studio by WordPress.com' ) } | |
| </div> | |
| <div className="developer-features-list__item-description"> | |
| { translate( | |
| 'A fast, free way to develop locally with WordPress. Share your local sites with clients or colleagues and keep your local development process smooth and simple.' | |
| ) } | |
| </div> | |
| <div className="developer-features-list__item-learn-more"> | |
| <a | |
| id="studio" | |
| href={ localizeUrl( 'https://developer.wordpress.com/studio/' ) } | |
| rel="noopener noreferrer" | |
| onClick={ handleClickLink } | |
| > | |
| { translate( 'Learn more' ) } | |
| </a> | |
| </div> | |
| </Card> | |
| ); | |
| }; | |