---
import { getTopMovies } from "../scripts/fetchMovies";
import type { MovieCatalog } from "../scripts/interfaces";

const movieProgram = await getTopMovies();
---

<div>
    {
        movieProgram.map((movie: MovieCatalog, programIndex: any) => {
            {<div>{movie.genre}</div>}
        })
    }
</div>
