import { createContext } from "react"

export const TestContext = createContext("Test123")

// export const loginContextData = { open: false, setOpen: (open: boolean): void => {} };

interface LoginCTX {
    loginModalOpen: boolean;
    setOpen?: (open: boolean) => void;
    currentUser?: string;
    userToken?: string;
}

const loginContextData = { loginModalOpen: false };

export const LoginContext = createContext<LoginCTX>(loginContextData);