UNPKG

546 BJavaScriptView Raw
1"use client";
2
3import * as React from 'react';
4import { ConfigContext } from '../config-provider';
5const BreadcrumbSeparator = _ref => {
6 let {
7 children
8 } = _ref;
9 const {
10 getPrefixCls
11 } = React.useContext(ConfigContext);
12 const prefixCls = getPrefixCls('breadcrumb');
13 return /*#__PURE__*/React.createElement("li", {
14 className: `${prefixCls}-separator`,
15 "aria-hidden": "true"
16 }, children === '' ? children : children || '/');
17};
18BreadcrumbSeparator.__ANT_BREADCRUMB_SEPARATOR = true;
19export default BreadcrumbSeparator;
\No newline at end of file