// GlobalStateContext.ts
import { createContext, Dispatch, SetStateAction } from 'react';

// Define the shape of your context value
type GlobalStateContextType = {
  isAuthenticate: boolean;
  setIsAuthenticate: Dispatch<SetStateAction<boolean>>;
};

// Create the context with a default value of `undefined`
const GlobalStateContext = createContext<GlobalStateContextType | undefined>(undefined);

export default GlobalStateContext;
