import { Component, Prop, Emit, Vue, Watch } from 'vue-property-decorator';
import { mixins } from 'vue-class-component';
import ReturnToParentView from '@/mixins/ReturnToParentView';

@Component({})
export default class Header extends mixins(ReturnToParentView) {
  @Prop() parrentComponents: string[];
  @Prop() loading: boolean;
  @Prop() headline: string;

  @Emit('back')
  bgoBack(): string[] {
    this.returnToParentViews(...this.parrentComponents);
    return this.parrentComponents;
  }

}
