export const displayDownloadButton = downloadButton => {
    const acceptTerms = document.querySelector('[data-press-image-accept]');

    if (acceptTerms) {
        acceptTerms.addEventListener('change', (event) => {
            if (event.target.checked) {
                downloadButton.style.display = 'inline-flex';
            } else {
                downloadButton.style.display = 'none';
            }
        });
    }
};
