mirror of
https://github.com/movie-web/native-app.git
synced 2025-09-13 18:13:25 +00:00
10 lines
437 B
TypeScript
10 lines
437 B
TypeScript
import { TMDB } from "tmdb-ts";
|
|
|
|
const TMDB_API_KEY =
|
|
"eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJkYTM1ZTgyMzE4OTc0NTgxNDJmZjljZTE4ODExNWRlNiIsInN1YiI6IjY0OTM0ZDQ1ODliNTYxMDExYzliZDVhMiIsInNjb3BlcyI6WyJhcGlfcmVhZCJdLCJ2ZXJzaW9uIjoxfQ.AzWnIcxPNgDwGdzeIZ_C3mRC_5_qy-Z-SRPglLjzlNc";
|
|
export const tmdb = new TMDB(TMDB_API_KEY);
|
|
|
|
export function getMediaPoster(posterPath: string): string {
|
|
return `https://image.tmdb.org/t/p/w185/${posterPath}`;
|
|
}
|