"use client"; import clsx from "clsx"; import Link from "next/link"; import { useParams } from "next/navigation"; import { useApp } from "../../../hooks"; import UrlUtils from "../../../utils/app/UrlUtils"; interface MenuItem { title: string; routePath?: string; } interface Props { menu: MenuItem[]; className?: string; home?: string; } export default function Breadcrumb({ className = "", home = "", menu = [] }: Props) { const params = useParams(); const { t } = useApp(); function getHomeItem() { if (params.tenant) { return UrlUtils.currentTenantUrl(params, "dashboard"); } else { return "/admin/dashboard"; } } return ( ); }