mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-25 18:50:56 +02:00
9 lines
213 B
TypeScript
9 lines
213 B
TypeScript
import React, { useContext } from "react";
|
|
import { Gang } from "../Gang";
|
|
|
|
export const Context = {
|
|
Gang: React.createContext<Gang>({} as Gang),
|
|
};
|
|
|
|
export const useGang = (): Gang => useContext(Context.Gang);
|