ent en cours
This commit is contained in:
14
front_end/src/context/LocalDataContext.tsx
Normal file
14
front_end/src/context/LocalDataContext.tsx
Normal 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)
|
||||
Reference in New Issue
Block a user