// packages/block-library/src/latest-comments/deprecated.js
var v1 = {
  attributes: {
    commentsToShow: {
      type: "number",
      default: 5,
      minimum: 1,
      maximum: 100
    },
    displayAvatar: {
      type: "boolean",
      default: true
    },
    displayDate: {
      type: "boolean",
      default: true
    },
    displayExcerpt: {
      type: "boolean",
      default: true
    }
  },
  isEligible(attributes) {
    return attributes?.displayExcerpt === false;
  },
  migrate(attributes) {
    return {
      ...attributes,
      displayContent: attributes.displayExcerpt ? "excerpt" : "none"
    };
  }
};
var deprecated_default = [v1];
export {
  deprecated_default as default
};
//# sourceMappingURL=deprecated.js.map
