import { j as c } from "../../node_modules/react/jsx-runtime.mjs";
import { useState as t, useEffect as g } from "react";
import k from "../../assets/iconfont/index.mjs";
const W = ({ iconType: o = "", iconSize: r = 22 }) => {
  const [l, e] = t(), [h, a] = t(""), u = "#1276F3", n = "#FF952B", i = "#5D73FA", s = "#29BF7F";
  return g(() => {
    switch (o) {
      case "WN.Business.CaseClose":
        e(n), a("jieanshenhe1");
        break;
      case "WN.Business.Case":
        e(n), a("jieanshenhe1");
        break;
      case "WN.Business.StampFiles.CaseFile":
        e(n), a("wodezhangdan");
        break;
      case "WN.Business.Case.CaseInfoChange":
        e(s), a("wodezhangdan");
        break;
      case "WN.Business.StampFiles.Stamp":
        e(s), a("wodezhangdan");
        break;
      case "WN.Works.Worklog":
        e(s), a("rizhishenpi");
        break;
      case "WN.Customers.Clue":
        e(s), a("xiansuogenjin");
        break;
      case "WN.Customers.Storage":
        e(i), a("list_rukushenhe");
        break;
      case "WN.Financial.Billing":
        e(n), a("zhangdanguanli");
        break;
      case "WN.Financial.Invoice":
        e(i), a("fapiaoshenhe");
        break;
      case "WN.Financial.Receipt":
        e(s), a("a-8shoukuandengji");
        break;
      case "WN.Financial.Charge":
        e(s), a("a-17houbufeiyongshenhe");
        break;
      case "WN.Office.Stamp":
        e(n), a("hangzhengyongzhang");
        break;
      case "WN.HumanResource.Leave":
        e(n), a("qingjiashenpiliucheng");
        break;
      case "WN.Financial.Receipt.UnClaimedReceipts":
        e(n), a("shoukuanrenling");
        break;
      case "WN.Executive.SocialSecurity":
        e(i), a("renshibiaozhunyongzhangshenpiliucheng");
        break;
      case "WN.Financial.Allocation":
        e(n), a("income-o");
        break;
      case "WN.Customers.Storage.FormalCustomer":
        e(n), a("ruku");
        break;
      default:
        e(u), a("bangongyongpindizhiyihaolingyongliucheng");
    }
  }, [o]), c.jsx("div", { className: "bitzPageIconBlock", children: c.jsx(k, { color: l, size: r, name: h }) });
};
export {
  W as default
};
