@devfamily/admiral
Version:
Admiral is a frontend framework for creating back office using React. It provides out-of-the-box components and tools that make developing an admin interface easy and fast.
14 lines (13 loc) • 579 B
TypeScript
import React from 'react';
import { Location, RouterLocationState } from './interfaces';
interface CreateRoutesConfig {
withAuth?: boolean;
}
export declare function createRoutesFrom(modules: any, config?: CreateRoutesConfig): () => JSX.Element;
declare type TopLocationContextValue = Location<RouterLocationState>;
export declare const TopLocationContext: React.Context<TopLocationContextValue>;
export declare const TopLocationContextProvider: React.FC<{
value: TopLocationContextValue;
}>;
export declare function useTopLocation(): TopLocationContextValue;
export {};