UNPKG

@ozen-ui/kit

Version:

React component library

11 lines (10 loc) 669 B
import { __assign, __rest } from "tslib"; import React from 'react'; import { polymorphicComponentWithRef } from '../../../../utils/polymorphicComponentWithRef'; import { BreadcrumbItem } from '../../../Breadcrumbs'; import { TITLE_BREADCRUMB_ITEM_DEFAULT_TAG } from './constants'; export var TitleBreadcrumbItem = polymorphicComponentWithRef(function (_a, ref) { var children = _a.children, _b = _a.as, as = _b === void 0 ? TITLE_BREADCRUMB_ITEM_DEFAULT_TAG : _b, other = __rest(_a, ["children", "as"]); return (React.createElement(BreadcrumbItem, __assign({ ref: ref, as: as }, other), children)); }); TitleBreadcrumbItem.displayName = 'TitleBreadcrumbItem';