{% from 'utils.html.twig' import imgUpload %}
<div class="cover">
{# VÍDEO #}
{% if productPage.video is not empty or productPage.library is not empty %}
<div id="wrap-video-{{ mode }}"></div>
{# IMG #}
{% else %}
{{
imgUpload(
productPage.photo,
enum('AbstractEnum::PATH_PRODUCT_PHOTO'),
img_option, product.title
)
}}
{% endif %}
</div>