<div class="flex flex-col gap-1">
    <span>
        {{ address.name }}
    </span>
    <span>
        {{ address.company }}
    </span>
    <span>
        {{ address.addressLine1 }}
    </span>
    <span>
        {{ address.addressLine2 }}
    </span>
    <span>
        {{ address.city }}
        ,
        {{ address.state }}
        {{ address.zip }}
    </span>
    <span>
        {{ address.phone }}
    </span>
    {% if edit %}
        <a href="/address/edit/{{ address.id }}">
            Edit
        </a>
        <form id="edit-form-{{ address.id }}" action="{{ edit_url }}" method="post" style="display: none;">
            <input type="hidden" name="address_id" value="{{ address.id }}" />
        </form>
    {% endif %}
    {% if delete %}
        <a href="#delete-modal-{{ address.id }}">
            Delete
        </a>
        {% include 'lib/modal.twig' with {
            id: 'delete-modal-' ~ address.id,
            content: 'lib/modals/confirm_delete_address.twig',
            dangerText: 'Yes, delete',
            dangerURL: '/address/delete/' ~ address.id ~ '?redirect=' ~ redirect
        } %}
        <form id="delete-form-{{ address.id }}" action="{{ delete_url }}" method="post" style="display: none;" />
        <input type="hidden" name="address_id" value="{{ address.id }}"></form>
    {% endif %}
    {% if set_default %}
        <form id="set-default-form-{{ address.id }}" action="/account/address/set-default-{{ set_default }}" method="post">
            <input type="hidden" name="address_id" value="{{ address.id }}" />
            {% include 'lib/buttons/primary.twig' with { 
                label: 'Set Default' 
            } %}
        </form>
    {% endif %}
</div>
