import  { ReactNode, useState } from 'react';
import GlobalStateContext from './GlobalStateContext';




const GlobalStateProvider = ({ children }:{children:ReactNode}) => {
  const [isAuthenticate, setIsAuthenticate] = useState<boolean>(true);

  return (
    <GlobalStateContext.Provider value={{ isAuthenticate, setIsAuthenticate }}>
      {children}
    </GlobalStateContext.Provider>
  );
};

export default GlobalStateProvider;
