1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-26 06:54:18 +00:00
pds-2021-g2-nest/code/frontend/src/contexts/ContextTheme.js

13 lines
335 B
JavaScript
Raw Normal View History

2021-04-21 13:37:12 +00:00
import {createContext} from "react";
/**
* A context containing a list with the currently selected theme and the function to set a different one.
*
* The function can be `undefined` if run outside a provider.
*
* @type {React.Context}
*/
2021-04-21 16:58:14 +00:00
const ContextTheme = createContext(["ThemeDark", undefined])
2021-04-21 13:37:12 +00:00
export default ContextTheme