import { lexicalEditor } from "@payloadcms/richtext-lexical";
import { Block } from "payload";

export const ContentBlock: Block = {
  slug: "contentBlock",
  labels: { plural: "Contents", singular: "Content" },
  fields: [
    {
      name: "content",
      type: "richText",
      editor: lexicalEditor({}),
      required: true,
    },
  ],
};
