components/elements/ImageBtnWidget/schema.jsjavascript
import btnGridSchema from "../ButtonGrid/schema.js";

/**
 * Content-block contract of the "imageBtnWidget" element (pattern:
 * StoryTitle/schema.js). Reuses ButtonGrid's own `properties` for its nested
 * `buttonGrid` block, so both schemas stay in sync.
 */
export default {
  type: "imageBtnWidget",
  region: "content",
  required: [],
  properties: {
    image: {
      type: "string",
    },
    buttonGrid: {
      type: "object",
      required: ["buttons"],
      properties: btnGridSchema.properties,
    },
  },
};