// ============================================================
// crm-pages.jsx — Cadence CRM · in-app screens
// ------------------------------------------------------------
// Every page renders INSIDE SidebarShell (far-left sidebar).
// Built on vibn-ai-templates components. Light/minimal theme.
//
// Pages: CRMHome, CRMPeople, CRMRecord, CRMPipeline,
// CRMInbox, CRMReports, CRMSettings.
// ============================================================
const CRM_USER = { name: "Mira Reyes", email: "mira@northwind.io", color: "#d4b8a8" };
// Sidebar config — pass the active id, get the sections array.
const crmSections = (active) => [
{ items: [
{ id: "home", label: "Home", icon: "home", active: active === "home" },
{ id: "inbox", label: "Inbox", icon: "inbox", count: 8, active: active === "inbox" },
{ id: "tasks", label: "My tasks", icon: "check", count: 3, active: active === "tasks" },
]},
{ title: "Records", items: [
{ id: "companies", label: "Companies", icon: "building", active: active === "companies" },
{ id: "people", label: "People", icon: "people", active: active === "people" },
{ id: "deals", label: "Deals", icon: "target", count: 12, active: active === "deals" },
]},
{ title: "Workspace", items: [
{ id: "reports", label: "Reports", icon: "bar", active: active === "reports" },
{ id: "automations", label: "Automations", icon: "workflow", active: active === "automations" },
{ id: "settings", label: "Settings", icon: "settings", active: active === "settings" },
]},
];
// Wrap a page body in the shell with the right nav item active
const CRMShell = ({ active, children }) => (