{% if title or children %}
  {% set modifier = children ? 'component' : 'block' %}
  <div{{ attributes.addClass('db-layer').addClass('db-layer--' ~ modifier) }}>
    {% if title %}<p class="db-layer__title">{{ title }}</p>{% endif %}
    {% if children %}
    <div class="db-layer__children">
    {{ children }}
    </div>
    {% endif %}
  </div>
{% endif %}