text: export default class Errors {
      constructor() {
          this.errors = {}
      }
  
      get(field) {
          if (this.errors[field]) {
              return this.errors[field][0]
          }
      }
  
      record(errors) {
          this.errors = errors
      }
  
      clear(field) {
          delete this.errors[field]
      }
  
      reset() {
          this.errors = {}
      }
  }
  