10 lines · 306 BRaw
| 1 | import { createContext } from "react-router"; |
| 2 | import type { Backend, Refs } from "@refs/backend/contract"; |
| 3 | |
| 4 | export interface RequestContext { |
| 5 | backend: Backend; |
| 6 | nonce: string; |
| 7 | } |
| 8 | |
| 9 | export const requestContext = createContext<RequestContext>(); |
| 10 | export const refsContext = createContext<Refs | null>(null); |