UNPKG

610 BTypeScriptView Raw
1import React from 'react';
2import type { BreadcrumbProps as BreadcrumbUiProps } from '../ui/Breadcrumb';
3import type { UseBreadcrumbProps } from 'react-instantsearch-core';
4type UiProps = Pick<BreadcrumbUiProps, 'items' | 'hasItems' | 'createURL' | 'onNavigate' | 'translations'>;
5export type BreadcrumbProps = Omit<BreadcrumbUiProps, keyof UiProps> & Omit<UseBreadcrumbProps, 'separator'> & {
6 translations?: Partial<UiProps['translations']>;
7};
8export declare function Breadcrumb({ attributes, rootPath, separator, transformItems, translations, ...props }: BreadcrumbProps): React.JSX.Element;
9export {};