{%- set class_name = [
"i-document",
"d-flex gap-3 align-items-center py-1 px-2",
]|join(' ')|trim -%}
{%- set attrs = [
'class="' ~ class_name ~ '"',
] -%}
{%- set attrs = attrs|join(' ')|trim -%}
<div {{ attrs|raw }}>
{% include "@Components/icon/icon.twig" with {props: {
src: "@Images/svg/file.svg",
size: "xxl",
}} %}
<div class="i-document__body d-flex flex-column flex-grow-1">
<span class="i-document__title u-fz-md u-fw-500">
{{ props.title }}
</span>
{% if props.metadata %}
<span class="i-document__metadata u-fz-sm u-fw-400 u-color-primary-500">
{{ props.metadata }}
</span>
{% endif %}
</div>
<div class="i-document__button flex-shrink-0">
{% include "@Components/button/button.twig" with {props: {
icon_only: true,
variant: "primary",
icon: {
src: "@Images/svg/chevron-down.svg",
size: "lg"
},
size: "sm",
url: props.url,
blank: true,
}} %}
</div>
</div>