import * as React from 'react'; import { ConfigConsumer, ConfigConsumerProps } from '../config-provider'; export default class BreadcrumbSeparator extends React.Component { static __ANT_BREADCRUMB_SEPARATOR = true; renderSeparator = ({ getPrefixCls }: ConfigConsumerProps) => { const { children } = this.props; const prefixCls = getPrefixCls('breadcrumb'); return {children || '/'}; }; render() { return {this.renderSeparator}; } }