amis-rpc-design/node_modules/antd/es/breadcrumb/BreadcrumbSeparator.js
2023-10-07 19:42:30 +08:00

19 lines
546 B
JavaScript

"use client";
import * as React from 'react';
import { ConfigContext } from '../config-provider';
const BreadcrumbSeparator = _ref => {
let {
children
} = _ref;
const {
getPrefixCls
} = React.useContext(ConfigContext);
const prefixCls = getPrefixCls('breadcrumb');
return /*#__PURE__*/React.createElement("li", {
className: `${prefixCls}-separator`,
"aria-hidden": "true"
}, children === '' ? children : children || '/');
};
BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
export default BreadcrumbSeparator;