import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static get targets() {
    return [ "confirm" ]
  }
  
  connect() {
  }
  
  confirmClick(event) {
    if (event.key === 'Enter') this.confirmTarget.click()
  }
  
}