import { appConfig } from "@/shared/config/app-config";
import { StatisticCountResponse } from "@/shared/services/statistic-count";

export type StatKey = keyof StatisticCountResponse;

export type StatConfig = {
  key: StatKey;
  title: string;
  url: string;
  icon: string;
};

export const STAT_CARDS: StatConfig[] = [
  {
    key: "mapset_count",
    title: "Total Mapset",
    url: "/maps?open-catalog=true",
    icon: appConfig.heroCardMapsetIcon,
  },
  {
    key: "organization_count",
    title: "Organisasi Perangkat Daerah",
    url: "#organization",
    icon: appConfig.heroCardOpdicon,
  },
  {
    key: "metadata_count",
    title: "Metadata",
    url: "https://geonetwork.jatimprov.go.id/",
    icon: appConfig.heroCardMetadataIcon,
  },
  {
    key: "visitor_count",
    title: "Total Pengunjung",
    url: "/",
    icon: appConfig.heroCardVisitorsIcon,
  },
  {
    key: "download_count",
    title: "Total Unduhan",
    url: "/",
    icon: appConfig.heroCardDownloadsIcon,
  },
];
