breadcrumbTitle.tsx 370 B

12345678910111213141516171819
  1. import {PlainRoute} from 'react-router';
  2. import {useBreadcrumbTitleEffect} from './context';
  3. type Props = {
  4. routes: Array<PlainRoute>;
  5. title: string;
  6. };
  7. /**
  8. * Breadcrumb title sets the breadcrumb label for the provided route match
  9. */
  10. function BreadcrumbTitle(props: Props) {
  11. useBreadcrumbTitleEffect(props);
  12. return null;
  13. }
  14. export default BreadcrumbTitle;