mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-04 22:03:10 +00:00
10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
import { createContext, useContext } from "react";
|
|
import type { WakuLight } from "@waku/interfaces";
|
|
|
|
export type WakuContextType = {
|
|
waku?: WakuLight;
|
|
};
|
|
|
|
export const WakuContext = createContext<WakuContextType>({ waku: undefined });
|
|
export const useWaku = () => useContext(WakuContext);
|