Download wp-calypso/client/lib/domains/suggestions/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 853 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/suggestions/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/domains/suggestions/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/domains/suggestions/index.js
853 Bytes
| import { getDomainSuggestionsVendor } from '@automattic/domain-picker'; | |
| /** | |
| * Get the suggestions vendor | |
| * @param {Object} [options] Options to determine the suggestion vendor | |
| * @param {boolean} [options.isSignup] Flag to indicate that we're in a signup context | |
| * @param {boolean} [options.isDomainOnly] Flag to indicate that we're in a domain-only context | |
| * @param {boolean} [options.isPremium] Flag to show premium domains. | |
| * @param {string} [options.flowName] The flow name (used to determine the vender). | |
| * @returns {string} Vendor string to pass as part of the domain suggestions query. | |
| */ | |
| export const getSuggestionsVendor = ( options = {} ) => { | |
| // If the isPremium prop is not given, fallback to true. | |
| if ( typeof options.isPremium === 'undefined' ) { | |
| options.isPremium = true; | |
| } | |
| return getDomainSuggestionsVendor( options ); | |
| }; | |