react-code-dataset / wp-calypso /client /jetpack-cloud /sections /partner-portal /lib /is-jetpack-bundle.ts
react-code-dataset / wp-calypso /client /jetpack-cloud /sections /partner-portal /lib /is-jetpack-bundle.ts
Download wp-calypso/client/jetpack-cloud/sections/partner-portal/lib/is-jetpack-bundle.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/partner-portal/lib/is-jetpack-bundle.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/jetpack-cloud/sections/partner-portal/lib/is-jetpack-bundle.ts
-
curl -L -o is-jetpack-bundle.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/jetpack-cloud/sections/partner-portal/lib/is-jetpack-bundle.ts
442 Bytes
| import { APIProductFamilyProduct } from 'calypso/state/partner-portal/types'; | |
| const JETPACK_BUNDLES = [ | |
| 'jetpack-complete', | |
| 'jetpack-security-t1', | |
| 'jetpack-security-t2', | |
| 'jetpack-starter', | |
| 'jetpack-growth', | |
| ]; | |
| export default function isJetpackBundle( product: APIProductFamilyProduct | string ) { | |
| if ( typeof product === 'string' ) { | |
| return JETPACK_BUNDLES.includes( product ); | |
| } | |
| return product.family_slug === 'jetpack-packs'; | |
| } | |