Files
2024-02-15 17:01:50 +00:00

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);