import { ReactNode } from 'react'; import { isString } from 'lodash'; // @mui import { Box, Typography, Link } from '@mui/material'; // import Breadcrumbs, { Props as BreadcrumbsProps } from './Breadcrumbs'; // ---------------------------------------------------------------------- interface Props extends BreadcrumbsProps { action?: ReactNode; heading: string; moreLink?: string | string[]; } export default function HeaderBreadcrumbs({ links, action, heading, moreLink = '' || [], sx, ...other }: Props) { return ( {heading} {action && {action}} {isString(moreLink) ? ( {moreLink} ) : ( moreLink.map((href) => ( {href} )) )} ); }