mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-10-30 14:49:14 +00:00
20 lines
375 B
TypeScript
20 lines
375 B
TypeScript
import type {PlainRoute} from 'react-router';
|
|
|
|
import {useBreadcrumbTitleEffect} from './context';
|
|
|
|
type Props = {
|
|
routes: Array<PlainRoute>;
|
|
title: string;
|
|
};
|
|
|
|
/**
|
|
* Breadcrumb title sets the breadcrumb label for the provided route match
|
|
*/
|
|
function BreadcrumbTitle(props: Props) {
|
|
useBreadcrumbTitleEffect(props);
|
|
|
|
return null;
|
|
}
|
|
|
|
export default BreadcrumbTitle;
|