{% extends 'base.html.twig' %}
{% block title %}Discover {{ media_type|capitalize }} &mdash; {{ parent() }}{% endblock %}
{% block h2 %}Discover {{ media_type|capitalize }}{% endblock %}

{% block body %}
<div class="p-4 flex flex-col gap-4">
    {% for genreTitle, genreId in genres %}
        <twig:Turbo:Frame id="genre_{{ media_type }}_{{ genreId }}" src="{{ path('api.tmdb.genre', {
            mediaType: media_type,
            genreId: genreId,
            block: 'genre_results',
            target: 'genre_' ~ media_type~ '_' ~ genreId
        }) }}">
        </twig:Turbo:Frame>
    {% endfor %}
</div>
{% endblock %}
