13 lines
420 B
TypeScript
13 lines
420 B
TypeScript
import { UserPlan } from "@prisma/client";
|
|
|
|
/**
|
|
* TODO: It should be exposed at a single place.
|
|
*/
|
|
export function useExposePlanGlobally(plan: UserPlan) {
|
|
// Don't wait for component to mount. Do it ASAP. Delaying it would delay UI Configuration.
|
|
if (typeof window !== "undefined") {
|
|
// This variable is used by embed-iframe to determine if we should allow UI configuration
|
|
window.CalComPlan = plan;
|
|
}
|
|
}
|