ent en cours

This commit is contained in:
trochas
2026-01-06 10:05:57 +01:00
parent 20197a69ce
commit defefd2c79
8 changed files with 89 additions and 22 deletions

View File

@@ -0,0 +1,14 @@
import { createContext } from 'react'
import { Session, User } from '../classes';
interface LocalDataContextType {
user:User;
setUser: React.Dispatch<React.SetStateAction<User>>
sessions: Session[];
setSessions: React.Dispatch<React.SetStateAction<Session[]>>
users: User[];
setUsers: React.Dispatch<React.SetStateAction<User[]>>
}
export const LocalDataContext = createContext<LocalDataContextType | undefined>(undefined)