The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { createContext } from 'react';
import { type TimelineCalendarEvent } from '~/generated/graphql';
type CalendarContextValue = {
calendarEventsByDayTime: Record<number, TimelineCalendarEvent[] | undefined>;
};
export const CalendarContext = createContext<CalendarContextValue>({
calendarEventsByDayTime: {},
});