17 lines
425 B
JavaScript
17 lines
425 B
JavaScript
/**
|
|
* This file is part of the SplendidBear Websites' projects.
|
|
*
|
|
* Copyright (c) 2026 @ www.splendidbear.org
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
import { createContext, useContext } from 'react';
|
|
|
|
const GameContext = createContext(null);
|
|
|
|
export const useGame = () => useContext(GameContext);
|
|
|
|
export default GameContext;
|