import { suitePublicAsset } from "@/lib/suite/suite-public-asset"

export type FavoriteApp = {
  name: string
  icon: string
  /** Variante dark mode (gris clairs, surface adaptée). */
  iconDark?: string
  href?: string
  /** Ouvre dans un nouvel onglet (liens externes). */
  external?: boolean
  /** Logos sombres : blanc en dark via invert + hue-rotate. */
  whiteLogoInDark?: boolean
}

export const SUITE_FAVORITE_APPS: FavoriteApp[] = [
  {
    name: "Compte",
    icon: suitePublicAsset("/compte-mark.svg"),
    href: "/compte",
  },
  {
    name: "Agenda",
    icon: suitePublicAsset("/agenda-mark.svg"),
    iconDark: suitePublicAsset("/agenda-mark-dark.svg"),
    href: "/agenda",
  },
  { name: "Photos", icon: suitePublicAsset("/photos-mark.svg") },
  {
    name: "Ultimail",
    icon: suitePublicAsset("/ultimail-mark.svg"),
    href: "/mail",
  },
  {
    name: "UltiDrive",
    icon: suitePublicAsset("/ultidrive-mark.svg"),
    href: "/drive",
  },
  {
    name: "Contacts",
    icon: suitePublicAsset("/contacts-mark.svg"),
    href: "/contacts",
  },
  {
    name: "UltiMeet",
    icon: suitePublicAsset("/ultimeet-mark.svg"),
    href: "/meet",
  },
  {
    name: "Administration",
    icon: suitePublicAsset("/admin-mark.svg"),
    href: "/admin/settings",
  },
  {
    name: "OpenMaps",
    icon: suitePublicAsset("/openstreetmap-mark.svg"),
    href: "https://www.openstreetmap.org/",
    external: true,
  },
  {
    name: "UltiAI",
    icon: suitePublicAsset("/ultiai-mark.svg"),
    href: "/chat",
  },
  {
    name: "Qwant",
    icon: suitePublicAsset("/qwant-mark.svg"),
    href: "https://www.qwant.com/",
    external: true,
    whiteLogoInDark: true,
  },
  {
    name: "Ground News",
    icon: suitePublicAsset("/ground-news-mark.svg"),
    href: "https://ground.news/",
    external: true,
    whiteLogoInDark: true,
  },
]
