MCPcopy
hub / github.com/SYJun404/frank / getIconEle

Function getIconEle

src/queryMatch/utils/tools.ts:20–23  ·  view source on GitHub ↗
(key:string)

Source from the content-addressed store, hash-verified

18
19// 获取iconImgUrl
20const getIconEle = (key:string) => {
21 const imgUrl = new URL(`/src/assets/matchImage/${key}.png`, import.meta.url).href
22 return [iconDict[key],imgUrl]
23}
24export const getIconImg = (iconList:string[],isMvp:boolean,isWin:boolean) => {
25 const iconImgEle = iconList.map((icon) => {
26 return getIconEle(icon)

Callers 1

getIconImgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected