mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
6 lines
315 B
TypeScript
6 lines
315 B
TypeScript
import {createContext} from 'react';
|
|
import type {RouteContextInterface} from 'react-router';
|
|
|
|
// TODO(nisanthan): Better types. Context will be the `props` arg from the RouterProps render method. This is typed as `any` by react-router
|
|
export const RouteContext = createContext<RouteContextInterface | null>(null);
|