drawer-stack
Version:
Drawer stack for React
7 lines (6 loc) • 308 B
TypeScript
import { type RouteObject, type PathMatch } from "react-router";
export declare const flattenRoutes: (routes: RouteObject[], parentPath?: string) => RouteObject[];
export declare const findRouteAndMatch: (path: string, routes: RouteObject[]) => {
route: RouteObject;
match: PathMatch;
} | undefined;