@harvest-profit/npk
Version:
NPK UI Design System
17 lines • 824 B
TypeScript
import React, { ReactNode } from "react";
interface NavigationContextType {
as?: keyof React.JSX.IntrinsicElements | React.ComponentType<any>;
hrefProp?: string;
matchWith: (href: string, locationPath: string, props: any) => boolean;
transformPath: (href: string, locationPath: string, props: any) => string;
}
export declare const defaultNavigationConfig: NavigationContextType;
declare const NavigationContext: React.Context<NavigationContextType>;
export default NavigationContext;
interface NavigationContextProviderProps {
config?: Partial<NavigationContextType>;
children: ReactNode;
}
export declare const NavigationContextProvider: React.FC<NavigationContextProviderProps>;
export type { NavigationContextType, NavigationContextProviderProps };
//# sourceMappingURL=NavigationContext.d.ts.map