Download wp-calypso/client/data/media/with-upload-site-icon.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 363 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/data/media/with-upload-site-icon.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/data/media/with-upload-site-icon.js
-
curl -L -o with-upload-site-icon.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/data/media/with-upload-site-icon.js
363 Bytes
| import { createHigherOrderComponent } from '@wordpress/compose'; | |
| import { useUploadSiteIcon } from './use-upload-site-icon'; | |
| export const withUploadSiteIcon = createHigherOrderComponent( | |
| ( Wrapped ) => ( props ) => { | |
| const uploadSiteIcon = useUploadSiteIcon(); | |
| return <Wrapped { ...props } uploadSiteIcon={ uploadSiteIcon } />; | |
| }, | |
| 'withUploadSiteIcon' | |
| ); | |