// GlobalStateContext.ts import { createContext, Dispatch, SetStateAction } from 'react'; // Define the shape of your context value export interface GlobalStateContextType { isAuthenticate: boolean; setIsAuthenticate: Dispatch>; isBarLoading: boolean; setIsBarLoading: Dispatch>; } // Create the context with a default value of `undefined` const GlobalStateContext = createContext(undefined); export default GlobalStateContext;