import {SessionProps} from "@/lib/models/Session";
import {Context, createContext, Dispatch, SetStateAction} from "react";

export interface SessionContextProps {
    session: SessionProps;
    setSession: Dispatch<SetStateAction<SessionProps>>;
}

export const SessionContext: Context<SessionContextProps> = createContext<SessionContextProps>({
    session: {
        isConnected: false,
        accessToken: "",
        user: null,
    },
    setSession: () => {
    },
})
