File size: 442 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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';
}