{#
    sidebar_btn - Add button used in the sidebar for wallets and devices.
    Parameters:
    - url_path: URL path the button should lead to (ie. 'new_wallet', 'new_device_type').
    - text: The text of the button.
    - id: an optional id for the "a" element
    - icon: should show an icon of +
    - class: class property of the button
 #}
{% macro sidebar_btn(url_path, text, id="", icon=true, class="btn") -%}
    <a class="text-white flex items-center rounded-lg bg-dark-600 hover:bg-dark-700 flex items-center justify-center py-1" href="{{url_path}}" class="{{class}}" {% if id %}id="{{id}}"{% endif %} data-style="max-width: 90%;margin: auto;">
        {% if icon %}<svg class="text-white" fill="white" width="20" height="20" viewBox="0 0 24 24"><path d="M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"/></svg>{% endif %}
        <div>{{ text }}</div>
    </a>
{%- endmacro %}
