text: 
  
  
  
  
  
  
  import { createContext, useContext } from 'react';
  
  export const MyContext = createContext();
  
  const initialAuthContext = {
      user: null,
      token: null,
      tokenExpiration: null,
      viewUserProfileData: null,
      setUserData: ()=>{},
      setTokenData: () =>{},
      isAuthenticated: ()=>{},
      setViewUserProfileData: ()=>{},
  }
  const initialGetStartedContext = {
      contactData: null,
      locationData: null,
      profileimage: null,
      isContactDataSet: false,
      isLocationDataSet: false,
      isProfileDataSet: false,
      setIsContactDataSet: ()=> {},
      setIsLocationDataSet: ()=> {},
      setIsProfileDataSet: ()=> {},
      setContact: ()=> {},
      setLocation: ()=> {},
      setProfile: ()=> {},
      handleSubmit: ()=> {},
      getDetails: ()=>{},
  }
  
  export const AuthContext = createContext(initialAuthContext);
  export const GetStartedContext = createContext(initialGetStartedContext);
  
  export default function useAuth() {
      return useContext(AuthContext);
  }
  export  function useGetStartedContext() {
      return useContext(GetStartedContext);
  }
  
  
  
  
  