import React, {createContext, useState} from "react";

// Our StateContext are some variables which we want shared between components.
const StateContext = createContext(null);
function StateContextProvider({children}) {
    const state = useState({
        loginActive: false,
    });

    return (
        <StateContext.Provider value={state}>
            {children}
        </StateContext.Provider>
    );
}

export {StateContext, StateContextProvider};