Rename Event context files

This commit is contained in:
2026-03-12 14:50:25 +01:00
parent 742832649a
commit eecac5d474
10 changed files with 8 additions and 8 deletions
+26
View File
@@ -0,0 +1,26 @@
/*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);