NiklasMencke/nextjs-breadcrumbs

transformLabel?: ((title: string) => React.ReactNode) | undefined;

albertcito opened this issue · 1 comments

Could be possible add modify:

transformLabel?: ((title: string) => string) | undefined;
to
transformLabel?: ((title: string) => React.ReactNode) | undefined;

Because I would like replace Home by an icon.

transformLabel={(label: string) => {
  if (label === 'Home') {
    return <HomeOutlined />;
  }
  return label;
}}

Good catch! Fixed in #21