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 CardHeader extends mixins(ReturnToParentView) {
  @Prop() parrentComponents: string[];
  @Prop() loading: boolean;
  @Prop() sectionHeadline: string;
  @Prop() headline: string;
  @Prop() subline: string;

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

}
