import { Controller } from "@hotwired/stimulus"

// Connects to data-controller="call-widget"
export default class extends Controller {
  static values = {
    open: { type: Boolean, default: false },
    pause: { type: Boolean, default: false },
  }

  toggle() {
    this.openValue = !this.openValue
  }

  open() {
    this.openValue = true
  }

  pause() {
    this.pauseValue = true
  }

  unpause() {
    this.pauseValue = false
  }
};
