import { BreadcrumbProps } from "@chakra-ui/react"; /** `isCurrentPage` marks only the last item in `items`; `handleClick` fully replaces the link's default navigation. */ export type BreadcrumbsProps = Pick & { isCurrentPage?: boolean; /** @deprecated Never read by Breadcrumbs — has no effect at all. */ isLastChild?: boolean; /** Called with a crumb's path; never called for a label-only crumb (no `path`). */ handleClick: (path: string) => void; items: BreadcrumbItem[]; /** "wrap" flows crumbs onto new lines; "truncate" keeps one line and folds middle crumbs into a "…" menu. Default "nowrap". */ overflow?: "nowrap" | "wrap" | "truncate"; /** With overflow "truncate": most crumbs shown (first plus the last `maxItems - 1`); the rest go in the menu. Default 3, minimum 2. */ maxItems?: number; /** Visible-string overrides; `showMore` is the collapsed menu button's aria-label. */ labels?: BreadcrumbsLabels; "data-testid"?: string; }; /** Visible strings, each with an English default. */ export type BreadcrumbsLabels = { /** Default: `Show ${count} more`. */ showMore?: (count: number) => string; }; /** One crumb: `label` is the visible text; `path` goes to the link's href and `handleClick`. */ export type BreadcrumbItem = { /** Omit for a label-only crumb: rendered as text, not a link, never passed to `handleClick`. */ path?: string; label: string; };