Skip to content

The open alternative to Salesforce, designed for AI.

325 B
Raw Blame
import { createContext } from 'react';

import { type TimelineCalendarEvent } from '~/generated/graphql';

type CalendarContextValue = {
  calendarEventsByDayTime: Record<number, TimelineCalendarEvent[] | undefined>;
};

export const CalendarContext = createContext<CalendarContextValue>({
  calendarEventsByDayTime: {},
});