text: export default {
    name: "page",
    type: "object",
    title: "Page",
    fieldsets: [
      {
        title: "SEO & metadata",
        name: "metadata",
      },
    ],
    fields: [
      {
        name: "title",
        type: "string",
        title: "Title",
      },
      {
        name: "content",
        type: "array",
        title: "Page sections",
        of: [{ type: "hero" }, { type: "imageSection" }, { type: "textSection" }],
      },
      {
        name: "description",
        type: "text",
        title: "Description",
        description: "This description populates meta-tags on the webpage",
        fieldset: "metadata",
      },
      {
        name: "openGraphImage",
        type: "image",
        title: "Open Graph Image",
        description: "Image for sharing previews on Facebook, Twitter etc.",
        fieldset: "metadata",
        options: { hotspot: true },
      },
    ],
  
    preview: {
      select: {
        title: "title",
        media: "openGraphImage",
      },
    },
  };
  