text: import { PromptVM } from "./prompt.vm";
  import { ImageShortageError } from "../../Domain/image-shortage.error";
  import { ErrorCode } from "../../Domain/error-code";
  
  export class ImageShortageVM extends PromptVM {
    constructor(error = new ImageShortageError()) {
      let name = "image-shortage",
        title,
        message;
      if (error.code == ErrorCode.NoImages) {
        title = "No Images";
        message = "Whoops, looks like you don't have any images yet!";
      } else if (error.code == ErrorCode.SingleImage) {
        title = "Not Enough Images";
        message = "You need at least two images.";
      }
      super(name, title, message);
      this.linkText = "Add some by clicking here!";
    }
  }
  