The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type TabPresentation } from '@/page-layout/types/TabPresentation';
import { type PageLayoutTabLayoutMode } from '~/generated-metadata/graphql';
import { createRequiredContext } from '~/utils/createRequiredContext';
export type PageLayoutContentContextType = {
tabId: string;
layoutMode: PageLayoutTabLayoutMode;
presentation: TabPresentation;
};
export const [PageLayoutContentProvider, usePageLayoutContentContext] =
createRequiredContext<PageLayoutContentContextType>(
'PageLayoutContentContext',
);