import { __assign } from "tslib";
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import Icon from '../../icon';
import { getPathLabel } from '../path-fns';
function CascaderTag(props) {
    var path = props.path, renderValue = props.renderValue, onRemove = props.onRemove;
    return (_jsxs("div", __assign({ className: "zent-cascader-v2--tag", "data-zv": 'v10.0.12' }, { children: [_jsx("span", __assign({ title: getPathLabel(path), className: "zent-cascader-v2--tag-path", "data-zv": 'v10.0.12' }, { children: renderValue(path) }), void 0), _jsx(Icon, { type: "close", className: "zent-cascader-v2--tag-close", onClick: onRemove }, void 0)] }), void 0));
}
export default CascaderTag;
