UNPKG

@ozen-ui/kit

Version:

React component library

14 lines (13 loc) 872 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TitleBreadcrumbItem = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var polymorphicComponentWithRef_1 = require("../../../../utils/polymorphicComponentWithRef"); var Breadcrumbs_1 = require("../../../Breadcrumbs"); var constants_1 = require("./constants"); exports.TitleBreadcrumbItem = (0, polymorphicComponentWithRef_1.polymorphicComponentWithRef)(function (_a, ref) { var children = _a.children, _b = _a.as, as = _b === void 0 ? constants_1.TITLE_BREADCRUMB_ITEM_DEFAULT_TAG : _b, other = tslib_1.__rest(_a, ["children", "as"]); return (react_1.default.createElement(Breadcrumbs_1.BreadcrumbItem, tslib_1.__assign({ ref: ref, as: as }, other), children)); }); exports.TitleBreadcrumbItem.displayName = 'TitleBreadcrumbItem';