2026-04-10 21:53:50 +02:00
|
|
|
/**
|
|
|
|
|
* 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.
|
|
|
|
|
*/
|
|
|
|
|
|
2026-04-10 19:09:05 +02:00
|
|
|
import { createContext, useContext } from 'react';
|
2026-04-10 17:57:26 +02:00
|
|
|
|
|
|
|
|
const GameContext = createContext(null);
|
|
|
|
|
|
|
|
|
|
export const useGame = () => useContext(GameContext);
|
|
|
|
|
|
2026-04-10 19:09:05 +02:00
|
|
|
export default GameContext;
|