import { onPageLoadComplete } from '@nimius/event-utility';

onPageLoadComplete(async () => {
    const downloadButton = document.querySelector('[data-press-image-download]');
    if (downloadButton) {
        // eslint-disable-next-line max-len
        const { displayDownloadButton } = await import(/* webpackChunkName: "toubiz-press-area" */ '../../Scripts/toubiz-press-area/press-image.js');
        displayDownloadButton(downloadButton);
    }
});
