{% set icon = _args.icon %}
{% set title = _args.title %}
{% set items = _args.items|default([])|filter((i) => i is not empty) %}
<div class="targetlist__item">
<div class="targetlist__icon">
<i class="{{ icon }}"></i>
</div>
<div class="targetlist__detail">
<span class="targetlist__title text-semibold text-gray-dark d-block">
{{- title -}}
</span>
{% for item in items %}
<span class="targetlist__text d-flex flex-wrap">
<span class="font-14 text-medium text-gray-dark">
{{ item.text }}
{% if item.link|default(null) %}
<a
class="text-medium font-14 text-body text-underline"
href="{{ item.link|e('html_attr') }}"
{% if item.target|default(null) %}target="{{ item.target }}"{% endif %}
>View</a>
{% endif %}
</span>
</span>
{% endfor %}
</div>
</div>