export const platformModules = [
  {
    key: "home",
    label: "首页",
    bottomLabel: "核心指标",
    status: "ready",
  },
  {
    key: "forest-grass-wet",
    label: "林草湿一张图",
    bottomLabel: "林草湿",
    status: "ready",
  },
  {
    key: "ecological-protection",
    label: "生态保护",
    bottomLabel: "生态保护",
    status: "ready",
  },
  {
    key: "yak-management",
    label: "牦牛管理",
    bottomLabel: "牦牛管理",
    status: "ready",
  },
  {
    key: "pasture-management",
    label: "牧场管理",
    bottomLabel: "牧场管理",
    status: "ready",
  },
  {
    key: "yak-industry-chain",
    label: "牦牛产业全链",
    bottomLabel: "产业全链",
    status: "ready",
  },
  {
    key: "smart-management",
    label: "智慧管理",
    bottomLabel: "智慧管理",
    status: "ready",
  },
  {
    key: "grass-livestock-balance",
    label: "草畜平衡",
    bottomLabel: "草畜平衡",
    status: "ready",
  },
]

export function getModuleByKey(key) {
  return platformModules.find((item) => item.key === key) || platformModules[1]
}
