( item: SkinShopItem | NightMarketItem | GalleryItem | AccessoryShopItem, screenshotModeEnabled: boolean )
| 26 | }; |
| 27 | |
| 28 | export 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 | |
| 38 | export const isSameDayUTC = (d1: Date, d2: Date) => { |
| 39 | return ( |
no outgoing calls
no test coverage detected