import { __assign, __extends, __rest } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { Component } from 'react';
var BreadcrumbItem = (function (_super) {
    __extends(BreadcrumbItem, _super);
    function BreadcrumbItem() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    BreadcrumbItem.prototype.render = function () {
        var _a = this.props, href = _a.href, name = _a.name, others = __rest(_a, ["href", "name"]);
        if (this.props.children) {
            return this.props.children;
        }
        return href ? (_jsx("a", __assign({}, others, { href: href, "data-zv": 'v10.0.12' }, { children: name }), void 0)) : (_jsx("span", __assign({}, others, { "data-zv": 'v10.0.12' }, { children: name }), void 0));
    };
    return BreadcrumbItem;
}(Component));
export { BreadcrumbItem };
export default BreadcrumbItem;
