{% set export = exportId ? craft.exports.id(exportId).one() : create('studioespresso\\exporter\\elements\\ExportElement') %} {# Refreshes the component every 5 seconds #} {% set timezone = timezone ?? 'Europe/Brussels' %}
{% set isRunning = craft.exporter.listenForJob(export) %} {% if isRunning %}

{{ "⏳Your export running, stay tuned"|t("exporter") }}

Depending on number of entries in your export, this could take a while...

{% else %}

{{ "✅ Done!"|t("exporter") }}

{{ "Your export has finished and has sent by e-mail." }} {#
#} {# Done! Click the button below to download your export!#} {#
#} {# {{ csrfInput() }}#} {# {{ actionInput('exporter/element/get-download') }}#} {# {{ hiddenInput('exportId', export.id) }}#} {# {{ hiddenInput('fileName', craft.app.request.getQueryParam('fileName')) }}#} {# #} {#
#} {#
#} {% endif %}
{{ "View last updated at:"|t("exporter") }} {{ now|time('long', timezone=timezone) }}