Download wp-calypso/client/blocks/jitm/templates/spotlight.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 554 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/jitm/templates/spotlight.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/jitm/templates/spotlight.jsx
-
curl -L -o spotlight.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/jitm/templates/spotlight.jsx
554 Bytes
| import page from '@automattic/calypso-router'; | |
| import Spotlight from 'calypso/components/spotlight'; | |
| export default function SpotlightTemplate( props ) { | |
| const { trackImpression, message, CTA, description, iconPath, onClick } = props; | |
| const spotlightOnClick = () => { | |
| onClick(); | |
| page( CTA.link ); | |
| }; | |
| return ( | |
| <> | |
| { trackImpression && trackImpression() } | |
| <Spotlight | |
| taglineText={ message } | |
| illustrationSrc={ iconPath } | |
| onClick={ spotlightOnClick } | |
| titleText={ description } | |
| ctaText={ CTA.message } | |
| /> | |
| </> | |
| ); | |
| } | |