Replaced contentlayer with keystatic
This commit is contained in:
6
packages/cms/keystatic/src/content-renderer.tsx
Normal file
6
packages/cms/keystatic/src/content-renderer.tsx
Normal file
@@ -0,0 +1,6 @@
|
||||
import { DocumentElement } from '@keystatic/core';
|
||||
import { DocumentRenderer } from '@keystatic/core/renderer';
|
||||
|
||||
export function KeystaticDocumentRenderer(props: { content: unknown }) {
|
||||
return <DocumentRenderer document={props.content as DocumentElement[]} />;
|
||||
}
|
||||
Reference in New Issue
Block a user