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)
