import {customerRoutes} from "@/app/api/customers/customerRoutes"; export const breadcrumbMap: Record = { 'dashboard': 'Dashboard', 'settings': 'Settings', 'demo': 'Demo', 'users': 'User Management', 'customers': 'Kundenübersicht', }; export const breadcrumbResolvers: Record Promise> = { "customers": async (id: string) => { const res = await fetch(`/api${customerRoutes.getById(id)}`, {cache: "no-store"}); const customer = await res.json(); if (customer.companyName) return `Firma: ${customer.companyName}`; if (customer.name) return `Name: ${customer.name}`; return `ID: ${id}`; }, };