// @mui import Box from '@mui/material/Box'; import Link from '@mui/material/Link'; import Stack from '@mui/material/Stack'; import Typography from '@mui/material/Typography'; import Breadcrumbs from '@mui/material/Breadcrumbs'; // import { CustomBreadcrumbsProps } from './types'; import LinkItem from './link-item'; // ---------------------------------------------------------------------- export default function CustomBreadcrumbs({ links, action, heading, moreLink, activeLast, sx, ...other }: CustomBreadcrumbsProps) { const lastLink = links[links.length - 1].name; return ( {/* HEADING */} {heading && ( {heading} )} {/* BREADCRUMBS */} {!!links.length && ( } {...other}> {links.map((link) => ( ))} )} {action && {action} } {/* MORE LINK */} {!!moreLink && ( {moreLink.map((href) => ( {href} ))} )} ); } // ---------------------------------------------------------------------- function Separator() { return ( ); }