import {CustomerRepository} from "@/services/customers/repositories/customerRepository"; 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 customer = await CustomerRepository.getById(id); if (!customer) return `ID: ${id}`; if (customer.companyName) return `Firma: ${customer.companyName}`; if (customer.name) return `Name: ${customer.name}`; return `ID: ${id}`; }, };