import clsx from "clsx"; import { usePathname } from "next/navigation"; import UrlUtils from "../../../utils/app/UrlUtils"; export default function HeadingWithTabs({ tabs }: { tabs: { name: string; href: string }[] }) { const pathname = usePathname(); function isCurrent(idx: number) { return currentTab() === tabs[idx]; } const currentTab = () => { return tabs.find((element) => element.href && UrlUtils.stripTrailingSlash(pathname) === UrlUtils.stripTrailingSlash(element.href)); }; return (

Issues

); }