export default function handleShareButton() { const shareButton = document.querySelector('.socials-buttons__button--share'); if (!shareButton) return; shareButton.addEventListener('click', () => { const isOpen = shareButton.classList.contains('is-open'); console.log(isOpen); if (!isOpen) { shareButton.classList.add('is-open'); } else { shareButton.classList.remove('is-open'); } }); }