import { useContext } from "react" ; import { BreadcrumbContext } from "../core/contexts/BreacrumbsContext" ; category export interface BreadcrumbsController { breadcrumbs : BreadcrumbEntry [ ] ; set : ( props : { breadcrumbs : BreadcrumbEntry [ ] ; } ) => void ; } category export interface BreadcrumbEntry { title : string ; url : string ; } see BreadcrumbsController category export const useBreadcrumbsContext = ( ) : BreadcrumbsController => useContext ( BreadcrumbContext ) ;