antd
Version:
An enterprise-class UI design language and React components implementation
19 lines (18 loc) • 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;