{% set account = viewParams.account %}
{% set mailbox = viewParams.mailbox %}

{% if viewParams.idAccount > 0 and viewParams.idMailbox > 0 %}
  <h1 class="app-main-title">{{ translate('Mail') }} > {{ account.name }} > {{ mailbox.name }}</h1>

  <hblreact-mail-table-mails
    string:tag="mail-table-mails-{{ viewParams.account.id }}-{{ viewParams.mailbox.id }}"
    int:record-id="{{ viewParams.recordId }}"
    int:id-account="{{ viewParams.account.id }}"
    int:id-mailbox="{{ viewParams.mailbox.id }}"
    string:mailbox-name="{{ viewParams.mailbox.name }}"
    bool:readonly="true"
  ></hblreact-mail-table-mails>
{% else %}
  <div class="mt-20 w-full text-center">
    <i class="fas fa-envelope text-primary" style="opacity:0.05;font-size:20em"></i>
  </div>
{% endif %}