Download wp-calypso/client/landing/stepper/utils/hosting-flow.ts 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/landing/stepper/utils/hosting-flow.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/landing/stepper/utils/hosting-flow.ts
-
curl -L -o hosting-flow.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/landing/stepper/utils/hosting-flow.ts
554 Bytes
| import { useSelector } from 'calypso/state'; | |
| import getCurrentQueryArguments from 'calypso/state/selectors/get-current-query-arguments'; | |
| import getInitialQueryArguments from 'calypso/state/selectors/get-initial-query-arguments'; | |
| import { AppState } from 'calypso/types'; | |
| export const startedInHostingFlow = ( state: AppState ) => | |
| getInitialQueryArguments( state )?.[ 'hosting-flow' ] === 'true'; | |
| export const useIsCurrentlyHostingFlow = () => | |
| useSelector( | |
| ( state: AppState ) => getCurrentQueryArguments( state )?.[ 'hosting-flow' ] === 'true' | |
| ); | |