Download wp-calypso/client/blocks/jitm/templates/default.jsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/jitm/templates/default.jsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/blocks/jitm/templates/default.jsx
-
curl -L -o default.jsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/blocks/jitm/templates/default.jsx
723 Bytes
| import { get } from 'lodash'; | |
| import UpsellNudge from 'calypso/blocks/upsell-nudge'; | |
| export default function DefaultTemplate( { | |
| id, | |
| CTA, | |
| message, | |
| description, | |
| featureClass, | |
| tracks, | |
| trackImpression, | |
| onClick, | |
| onDismiss, | |
| } ) { | |
| return ( | |
| <> | |
| { trackImpression && trackImpression() } | |
| <UpsellNudge | |
| callToAction={ CTA.message } | |
| title={ message } | |
| description={ description } | |
| disableHref | |
| dismissPreferenceName={ featureClass } | |
| dismissTemporary | |
| onDismissClick={ onDismiss } | |
| onClick={ onClick } | |
| event={ get( tracks, [ 'click', 'name' ] ) || `jitm_nudge_click_${ id }` } | |
| href={ CTA.link } | |
| horizontal | |
| target={ CTA.target } | |
| showIcon | |
| forceDisplay | |
| /> | |
| </> | |
| ); | |
| } | |