src/utils/Contexts.js
import {createContext} from 'react';
/**
* Defines a new context for mood with no startvalue. Will work as a global variable
* @type {Object}
*/
const MoodContext = createContext(null);
/**
* Holds the activity object of the activity the user is assesseing
* @type {Object}
*/
const ActivityContext = createContext(null);
/**
* Creates a context for the journal module, to keep track of login information.
* @type {Object}
*/
const JournalContext = createContext(null);
/**
* Creates a context that controls whether helper is muted or not
* @type {Object}
*/
const MuteContext = createContext(null);
/**
* Create a context for the diary module, to keep track of the page the user is on.
* @type {Object}
*/
const DiaryPageContext = createContext(null);
export {
MoodContext,
ActivityContext,
JournalContext,
MuteContext,
DiaryPageContext,
};