Download wp-calypso/client/me/account/with-default-interface.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 402 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account/with-default-interface.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/me/account/with-default-interface.tsx
-
curl -L -o with-default-interface.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/me/account/with-default-interface.tsx
402 Bytes
| import { createHigherOrderComponent } from '@wordpress/compose'; | |
| import useGetDefaultInterface from 'calypso/me/account/hooks/use-get-default-interface'; | |
| export const withDefaultInterface = createHigherOrderComponent( | |
| ( Wrapped ) => ( props ) => { | |
| const defaultInterface = useGetDefaultInterface(); | |
| return <Wrapped { ...props } defaultInterface={ defaultInterface } />; | |
| }, | |
| 'withGeoLocation' | |
| ); | |