{%
set classes = [
'paragraph',
'clearfix',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
not paragraph.isPublished() ? 'paragraph--unpublished'
]
%}
{% block paragraph %}
    <div{{ attributes.addClass(classes) }}>
        {% block content %}
            {% if content.field_ssylka[0] is not empty %}
                <a href="{{ content.field_ssylka[0]['#url']|render }}">
                    {{ content.field_image }}
                </a>
            {% else %}
                {{ content.field_image }}
            {% endif %}
        {% endblock %}
    </div>
{% endblock paragraph %}
