import { TMDB } from "tmdb-ts";

/**
 * Create and configure TMDB API client
 * @returns TMDB client instance or null if token not configured
 */
export async function createTMDBClient(): Promise<TMDB | null> {
	const token = process.env.TMDB_TOKEN;

	if (!token) {
		return null;
	}

	return new TMDB(token);
}
