import cx from 'classnames' import { useRouter } from 'next/router' import { useMainContext } from '../context/MainContext' import { Link } from 'components/Link' import styles from './Breadcrumbs.module.scss' export type BreadcrumbT = { title: string href?: string } export const Breadcrumbs = () => { const router = useRouter() // remove query string and hash const pathWithLocale = `/${router.locale}${router.asPath.split('?')[0].split('#')[0]}` const { breadcrumbs } = useMainContext() return ( /* NOTE: The breadcrumbs class and the nav tag are used by the Lunr search scripts. The a tag generated by the Link is also used. If these change, please also change updating script/search/parse-page-sections-into-records.js. */ ) }