{% extends '@Components/storybook/preview.html.twig' %}

{% block component %}
   <twig:Product:Variations {{ ...args }}>
      {% if args.type is defined %}
         {% if args.type == 'CellSmall' %}
            <twig:Product:VariationLabel:CellSmall id_product="{{ this.id_product }}" id_label="{{ id_label }}"/>
         {% elseif args.type == 'CellLarge' %}
            <twig:Product:VariationLabel:CellLarge id_product="{{ this.id_product }}" id_label="{{ id_label }}"/>
         {% elseif args.type == 'SelectBox' %}
            <twig:Product:VariationLabel:SelectBox id_product="{{ this.id_product }}" id_label="{{ id_label }}"/>
         {% endif %}
      {% else %}
         {{ 'unknown.type'|trans([], 'products') }}
      {% endif %}
   </twig:Product:Variations>
{% endblock %}
