UNPKG

react-breadcrumbs-context

Version:

Flexible, router agnostic breadcrumbs implemented using React's context API.

4 lines (3 loc) 264 B
import React from 'react'; import { Crumb } from './types'; export declare const withBreadcrumb: <PropsType extends {} = any>(crumb: Crumb | ((props: PropsType) => Crumb)) => (WrappedComponent: React.ComponentType<PropsType>) => (props: PropsType) => JSX.Element;