feat: replace some partials with twig components

This commit is contained in:
Björn Fromme
2024-03-01 11:13:47 +01:00
parent a668dcb326
commit f722afe7ff
23 changed files with 205 additions and 96 deletions
@@ -0,0 +1,4 @@
<div class="{{ html_classes('flex items-start space-x-4 text-white p-4 rounded-md w-full', { 'bg-primary': type != 'error', 'bg-red-500': type == 'error' }) }}">
{{ icon(type == 'error' ? 'alert' : 'info', 'w-6 h-6 shrink-0') }}
<span>{{ message }}</span>
</div>