Download wp-calypso/client/landing/stepper/hooks/use-intent.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-intent.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/hooks/use-intent.ts
-
curl -L -o use-intent.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/hooks/use-intent.ts
280 Bytes
| import { useSelect } from '@wordpress/data'; | |
| import { ONBOARD_STORE } from '../stores'; | |
| import type { OnboardSelect } from '@automattic/data-stores'; | |
| export function useIntent() { | |
| return useSelect( ( select ) => ( select( ONBOARD_STORE ) as OnboardSelect ).getIntent(), [] ); | |
| } | |