import type { Config } from "@puckeditor/core"; type Props = { HeadingBlock: { title: string }; RichText: { content: string }; }; const puckConfig: Config = { components: { HeadingBlock: { fields: { title: { type: "text" }, }, defaultProps: { title: "Heading", }, render: ({ title }) => (

{title}

), }, RichText: { fields: { content: { type: "textarea" }, }, render: ({ content }) => (
), }, }, }; export default puckConfig;