default
Function: default()
default(
props):Element
Defined in: src/shared-components/BreadcrumbsComponent/SafeBreadcrumbs.tsx:19
SafeBreadcrumbs is a defensive wrapper around BreadcrumbsComponent.
It ensures breadcrumbs are only rendered when the component is mounted
within a valid React Router context. When rendered outside of a router,
the component safely returns null to prevent runtime errors.
In non-production environments, a warning is logged to aid debugging and improve developer experience.
Parameters
props
Props forwarded to BreadcrumbsComponent.
Returns
Element
A breadcrumb trail when inside a router context, otherwise null.