import MournbladeCYD2ItemSheetV2 from "./base-item-sheet.mjs";

export default class MournbladeCYD2DonSheet extends MournbladeCYD2ItemSheetV2 {

  /** @override */
  static DEFAULT_OPTIONS = {
    ...super.DEFAULT_OPTIONS,
    classes: [...super.DEFAULT_OPTIONS.classes, "don"],
    window: {
      ...super.DEFAULT_OPTIONS.window,
      title: "SHEETS.Item.don",
    },
  };

  /** @override */
  static PARTS = {
    main: {
      template: "systems/fvtt-mournblade-cyd-2-0/templates/item-don-sheet.hbs",
    },
  };

  /** @override */
  async _prepareContext() {
    const context = await super._prepareContext();
    context.owner = this.document.isOwner;
    context.editable = this.isEditable;
    return context;
  }
}
