'use strict';
import React from 'react';
import Router from 'react-router';
let Link = Router.Link;
let prefixCls = 'ant-breadcrumb';
let BreadcrumbItem = React.createClass({
render() {
var link = {this.props.children};
var slash = /;
if (typeof this.props.href === 'undefined') {
link = {this.props.children};
}
return {link}{slash};
}
});
let Breadcrumb = React.createClass({
contextTypes: {
router: React.PropTypes.func.isRequired
},
render() {
var crumbs, routes, params;
if (this.context.router) {
routes = this.context.router.getCurrentRoutes();
params = this.context.router.getCurrentParams();
crumbs = routes.map(function(route) {
return