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