Rename Event context files

This commit is contained in:
Giovanni committed 2026-03-12 14:50:25 +01:00
1 parent 742832649a
commit eecac5d474
10 files changed
+8 -8

No files matched your search

+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);