import { useState } from "react";
import AuthContext from "./authContext";

const AuthContextProvider = ({ children }) => {
    const [user, setUser] = useState({
        token: null,
        userId: null,
        currentProjectId: null,
    });

    return (
        <AuthContext.Provider value={{ user, setUser }}>
            {children}
        </AuthContext.Provider>
    );
}

export default AuthContextProvider;