import { type NavConfig } from "@/lib/nav-config"
/** Every route of this dashboard, by page — what a page passes as activeHref. */
export const ROUTES = {
overview: "/real-estate",
listings: "/real-estate/listings",
listing: "/real-estate/listings/[id]",
agents: "/real-estate/agents",
viewings: "/real-estate/viewings",
} as const
export const HOME = ROUTES.overview
/**
* The Real estate dashboard's navigation, as plain data. AppShell resolves the
* icon names and works out which item is current from the pathname; every
* page of the dashboard passes this NAV and its own ROUTES entry. The same
* pages are listed in ./manifest.ts, which the registry reads and this file
* must not import — the manifest does not ship, and this file does.
*/
export const NAV: NavConfig = {
brand: { name: "Keystone Property", initial: "K", href: HOME },
groups: [
{
label: "Real estate",
items: [
{ title: "Overview", href: ROUTES.overview, icon: "layout-dashboard" },
{ title: "Listings", href: ROUTES.listings, icon: "building" },
{ title: "Agents", href: ROUTES.agents, icon: "users" },
{ title: "Viewings", href: ROUTES.viewings, icon: "calendar" },
],
},
],
footer: [
{ title: "Settings", href: "/settings", icon: "settings" },
{ title: "Support", href: "/support", icon: "life-buoy" },
],
}