import {Controller} from '@hotwired/stimulus';
import * as bootstrap from 'bootstrap'

export default class extends Controller {
  connect() {
    const tooltipTriggerList = document.querySelectorAll('[data-bs-toggle="tooltip"]')
    const tooltipList = [...tooltipTriggerList].map(tooltipTriggerEl => new bootstrap.Tooltip(tooltipTriggerEl))
  }

  clearQuiz() {
    new bootstrap.Modal('#clearQuizModal').show();
  }

  deleteQuiz() {
    new bootstrap.Modal('#deleteQuizModal').show();
  }
}
