/*import { createContext } from "react";

export const EventContext = createContext(null);*/


import { createContext } from "react";

export type Task = {
  name: string;
  description: string;
  start: string | Date;
  end: string | Date;
};

export type EventGroup = {
  date: string;
  name: string;
  start: string | Date;
  tasks: Task[];
};

export type EventContextType = {
  events: EventGroup[];
};

export const EventContext = createContext<EventContextType | null>(null);