import {
  SYSTEM_NAV_LABEL_DEFAULTS,
  normalizeLabelRow,
  type FolderTreeNode,
  type LabelRowItem,
} from "@/lib/sidebar-nav-data"

/** Arborescence dossiers démo — alignée sur les tags des mails fictifs. */
export const DEMO_MAIL_FOLDER_TREE: FolderTreeNode[] = [
  {
    id: "demo-travail",
    label: "Travail",
    color: "bg-blue-500",
    children: [
      { id: "demo-travail-clients", label: "Clients", color: "bg-blue-400" },
      { id: "demo-travail-produit", label: "Produit", color: "bg-indigo-400" },
      { id: "demo-travail-partenaires", label: "Partenaires", color: "bg-sky-400" },
    ],
  },
  {
    id: "demo-org",
    label: "Organisation",
    color: "bg-amber-500",
    children: [
      { id: "demo-org-compta", label: "Comptabilité", color: "bg-amber-400" },
      { id: "demo-org-rh", label: "RH", color: "bg-orange-400" },
    ],
  },
  {
    id: "demo-perso",
    label: "Personnel",
    color: "bg-emerald-500",
    children: [
      { id: "demo-perso-voyages", label: "Voyages", color: "bg-emerald-400" },
      { id: "demo-perso-famille", label: "Famille", color: "bg-teal-400" },
    ],
  },
  { id: "demo-factures", label: "Factures", color: "bg-rose-500" },
]

const DEMO_CUSTOM_LABEL_ROWS: LabelRowItem[] = [
  normalizeLabelRow({
    id: "lbl-produit",
    label: "Produit",
    color: "bg-[#4f6df5]",
    tabbed: false,
    favorite: true,
    excludeFromPrincipal: false,
    showInMessageList: true,
    enabled: true,
  }),
  normalizeLabelRow({
    id: "lbl-ia",
    label: "IA",
    color: "bg-[#9a5cf0]",
    tabbed: false,
    favorite: true,
    excludeFromPrincipal: false,
    showInMessageList: true,
    enabled: true,
  }),
  normalizeLabelRow({
    id: "lbl-drive",
    label: "Drive",
    color: "bg-[#1fb6c9]",
    tabbed: false,
    favorite: false,
    excludeFromPrincipal: false,
    showInMessageList: true,
    enabled: true,
  }),
]

/** Libellés de tri (onglets Principale) + libellés perso Ultimail. */
export const DEMO_MAIL_LABEL_ROWS: LabelRowItem[] = [
  ...SYSTEM_NAV_LABEL_DEFAULTS.map((row) => normalizeLabelRow({ ...row })),
  ...DEMO_CUSTOM_LABEL_ROWS,
]
