@getcronit/pylon
Version:

29 lines (28 loc) • 721 B
TypeScript
import { PageProps } from '.';
declare const DataClientProvider: React.FC<{
client: any;
staticData?: {
cache?: any;
context?: any;
};
children: React.ReactNode;
}>;
declare const useDataClient: () => {
client: any;
pagesContext?: any;
};
export { DataClientProvider, useDataClient };
/**
* Provides the route data to components.
*/
declare const RouteDataProvider: React.FC<{
children: React.ReactNode;
props: PageProps;
name?: string;
}>;
/**
* Hook to access the route data for the current provider layer.
*/
declare const useRouteData: () => PageProps;
declare const useRouteId: () => string | undefined;
export { RouteDataProvider, useRouteData, useRouteId };