import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import clsx from 'clsx'; import withStyles from '@mui/styles/withStyles'; import MaterialUIBreadcrumbs from '@mui/material/Breadcrumbs'; import Typography from '@mui/material/Typography'; import { faHome } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; const styles = (theme) => ({ home: { color: theme.palette.secondary.main, width: '20px !important', height: '20px', marginTop: '2px' }, hover: { '&:hover': { color: theme.palette.primary.main } } }); class Breadcrumbs extends Component { render() { return ( this.props.content && this.props.content.length > 0 ? {this.props.content.splice(0, this.props.content.length-1).map((content, i) => ( {content.title} ))} {this.props.content.slice(-1)[0].title} : null ); }; } export default withStyles(styles, {withTheme: true})(Breadcrumbs);