(path)
| 15 | |
| 16 | // Append the language query param to a TMDB path. |
| 17 | function withLanguage(path) { |
| 18 | const lang = getTmdbLanguage(); |
| 19 | const sep = path.includes("?") ? "&" : "?"; |
| 20 | return `${path}${sep}language=${lang}`; |
| 21 | } |
| 22 | |
| 23 | export const imgUrl = (path, size = "w500") => |
| 24 | path ? `${IMG_BASE}/${size}${path}` : null; |
no test coverage detected