import React from 'react';
import { Icon } from 'UI';
import { Link } from 'react-router-dom';
interface Props {
items: any;
}
function Breadcrumb(props: Props) {
const { items } = props;
return (
{items.map((item: any, index: any) => {
if (index === items.length - 1) {
return (
{item.label}
);
}
if (item.to === undefined) {
return (
{item.label}
/
);
}
return (
{index === 0 && (
)}
{item.label}
/
);
})}
);
}
export default Breadcrumb;