import { Component, Prop } from 'vue-property-decorator';
import Vue from 'vue';
import VueI18n from 'vue-i18n';

@Component({})
export default class MFileLoader extends Vue {
  @Prop()
  private loading = false;

  @Prop() private error = false;
  @Prop() private errorMessage: VueI18n.TranslateResult = '';

  private files: File[] = [];

  private sendFiles(): void {
    this.$emit('sendFiles', this.files);
  }
}
