( listing )
| 78 | } |
| 79 | |
| 80 | export 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 | } |
nothing calls this directly
no test coverage detected