// @mui import Box from '@mui/material/Box'; import Link from '@mui/material/Link'; // routes import { RouterLink } from 'src/routes/components'; // import { BreadcrumbsLinkProps } from './types'; // ---------------------------------------------------------------------- type Props = { link: BreadcrumbsLinkProps; activeLast?: boolean; disabled: boolean; }; export default function BreadcrumbsLink({ link, activeLast, disabled }: Props) { const { name, href, icon } = link; const styles = { typography: 'body2', alignItems: 'center', color: 'text.primary', display: 'inline-flex', ...(disabled && !activeLast && { cursor: 'default', pointerEvents: 'none', color: 'text.disabled', }), }; const renderContent = ( <> {icon && ( {icon} )} {name} ); if (href) { return ( {renderContent} ); } return {renderContent} ; }