import './Breadcrumb.scss';
import { withRouter } from 'react-router-dom';
import { Breadcrumb } from 'antd';
import PropTypes from 'prop-types'
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom'
@connect(
state => {
return {
breadcrumb: state.user.breadcrumb
}
}
)
@withRouter
export default class BreadcrumbNavigation extends Component {
constructor(props) {
super(props);
}
static propTypes = {
breadcrumb: PropTypes.array
}
render () {
const getItem = this.props.breadcrumb.map((item, index) => {
if (item.href) {
return (