MCPcopy Create free account
hub / github.com/VShopApp/mobile / getDisplayIcon

Function getDisplayIcon

utils/misc.ts:28–36  ·  view source on GitHub ↗
(
  item: SkinShopItem | NightMarketItem | GalleryItem | AccessoryShopItem,
  screenshotModeEnabled: boolean
)

Source from the content-addressed store, hash-verified

26};
27
28export const getDisplayIcon = (
29 item: SkinShopItem | NightMarketItem | GalleryItem | AccessoryShopItem,
30 screenshotModeEnabled: boolean
31) => {
32 const imgUri =
33 "levels" in item ? item.levels[0].displayIcon : item.displayIcon;
34 if (imgUri && !screenshotModeEnabled) return { uri: imgUri };
35 return require("~/assets/images/noimage.png");
36};
37
38export const isSameDayUTC = (d1: Date, d2: Date) => {
39 return (

Callers 5

ShopItemFunction · 0.90
ShopAccessoryItemFunction · 0.90
GalleryItemFunction · 0.90
NightMarketItemFunction · 0.90
BundleItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected