Download wp-calypso/client/state/selectors/get-checkout-upgrade-intent.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 403 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-checkout-upgrade-intent.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/selectors/get-checkout-upgrade-intent.js
-
curl -L -o get-checkout-upgrade-intent.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/selectors/get-checkout-upgrade-intent.js
403 Bytes
| import 'calypso/state/ui/init'; | |
| /** | |
| * Retrieve the "intent" that the client implied prior to upgrading so we can send them to the appropriate route after checkout | |
| * @param {Object} state Global state tree | |
| * @returns {string} The intent signaled by the customer for upgrade purposes | |
| */ | |
| export default function getCheckoutUpgradeIntent( state ) { | |
| return state?.ui?.checkout?.upgradeIntent || ''; | |
| } | |