@automattic/calypso-products
Version:
This module contains information about the various products sold within calypso, such as product slugs, plan intervals, etc.
21 lines (16 loc) • 448 B
text/typescript
import { isEnabled } from '@automattic/calypso-config';
declare global {
interface Window {
isGlobalStylesOnPersonal?: boolean;
}
}
export function isGlobalStylesOnPersonalEnabled(): boolean {
if ( typeof window === 'undefined' ) {
return false;
}
if ( window.isGlobalStylesOnPersonal ) {
return true;
}
window.isGlobalStylesOnPersonal = isEnabled( 'global-styles/on-personal-plan' );
return !! window.isGlobalStylesOnPersonal;
}