import * as React from 'react'; import Breadcrumbs from '@mui/material/Breadcrumbs'; import Link from "react-router-dom/es/Link"; import Stack from '@mui/material/Stack'; import {Typography, useMediaQuery} from "@mui/material"; import background from "../img/breadcrumbs/bg-breadcrumbs.png"; const Breadcrumb = ({links=['this page'], title}) => { const matches = useMediaQuery('(max-width:899px)'); let arr = links.map(i => { let link = Array.from(i).map(j => j === ' ' ? '-' : j).join('').toLowerCase() return {i.toUpperCase()} }) arr.unshift( HOME ) return (
{title || links[links.length-1].toUpperCase()} {arr}
); } export default Breadcrumb;