The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type FrontComponentExecutionContext } from 'twenty-sdk/front-component';
import { FRONT_COMPONENT_CONTEXT_KEY } from 'twenty-sdk/front-component-renderer';
import { toGlobalScopeRecord } from '@/polyfills/utils/toGlobalScopeRecord';
export const getFrontComponentExecutionContext = ():
| FrontComponentExecutionContext
| undefined =>
toGlobalScopeRecord(globalThis)[FRONT_COMPONENT_CONTEXT_KEY] as
| FrontComponentExecutionContext
| undefined;