MCPcopy Create free account
hub / github.com/ThatGuySam/doesitarm / getIconForListing

Function getIconForListing

helpers/app-derived.js:80–93  ·  view source on GitHub ↗
( listing )

Source from the content-addressed store, hash-verified

78}
79
80export function getIconForListing ( listing ) {
81 const routeType = getRouteType( listing.endpoint )
82
83 if ( routeType === 'tv' || routeType === 'benchmarks' ) return '▶️'
84
85 if ( routeType === 'device' ) return '🖥'
86
87 if ( routeType === 'formula' ) return categories.homebrew.icon
88
89 if ( routeType === 'game' ) return categories.games.icon
90
91 // Just use default icon
92 return categoryTemplate.icon
93}

Callers

nothing calls this directly

Calls 1

getRouteTypeFunction · 0.85

Tested by

no test coverage detected