function initButton() {
  const buttons = document.querySelectorAll('.button');
  buttons.forEach((button) => {
    button.addEventListener('click', () => {
      alert(`Button clicked: ${button.textContent.trim()}`);
    });
  });
}

export default initButton;
