import { Component, Optional } from '@angular/core';

import { ModalIsDirtyTestContext } from './modal-is-dirty-test-context.fixture';

@Component({
  selector: 'sky-test-cmp',
  templateUrl: './modal-is-dirty.component.fixture.html',
})
export class ModalIsDirtyTestComponent {
  public isDirty: boolean;

  constructor(@Optional() context?: ModalIsDirtyTestContext) {
    this.isDirty = context?.isDirty ?? false;
  }
}
