import { ArrayList } from '@kit.ArkTS';
import { LoginManager } from '../manager/LoginGlobalManager';

export class MenuEntity {
  icon: Resource | null = null;
  title: string = "";
  alias: string = "";

  constructor(icon: Resource, title: string, alias: string) {
    this.icon = icon;
    this.title = title;
    this.alias = alias;
  }
}

export function homeMenuList(): ArrayList<MenuEntity> {
  let list = new ArrayList<MenuEntity>()
  list.add(new MenuEntity($r('app.media.ic_home_icon6'), "视频转音频", "videoToAudio"))
  list.add(new MenuEntity($r('app.media.ic_home_icon8'), "视频加水印", "addWatermark"))
  list.add(new MenuEntity($r('app.media.ic_home_icon5'), "视频转文字", "videoToText"))
  list.add(new MenuEntity($r('app.media.ic_home_icon9'), "长图拼接", "longImageMerge"))
  list.add(new MenuEntity($r('app.media.ic_home_icon10'), "更多功能", "moreTools"))
  return list;
}

export function mineMenuList(showDiamond: boolean): ArrayList<MenuEntity> {
  let list = new ArrayList<MenuEntity>()
  list.add(new MenuEntity($r('app.media.ic_mine_icon1'), "提取记录", "history"))
  if (showDiamond) {
    list.add(new MenuEntity($r('app.media.ic_mine_icon2'), "次数兑换", "diamond"))
  }
  list.add(new MenuEntity($r('app.media.ic_mine_icon3'), "意见反馈", "feedback"))
  list.add(new MenuEntity($r('app.media.ic_mine_icon4'), "联系客服", "service"))
  return list;
}

export function vipTipsList(): ArrayList<MenuEntity> {
  let list = new ArrayList<MenuEntity>()
  list.add(new MenuEntity($r("app.media.ic_vip_icon1"), "素材图库", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon2"), "视频打码", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon3"), "高清图片", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon4"), "视频加水印", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon5"), "视频提取", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon6"), "音频提取", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon7"), "文案提取", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon8"), "无广告", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon9"), "海量次数", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon10"), "海量流量", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon11"), "专属客服", ""))
  list.add(new MenuEntity($r("app.media.ic_vip_icon12"), "在线浏览", ""))
  return list;
}