-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
25 lines (21 loc) · 926 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* istanbul ignore file */
import { INLINES, BLOCKS } from "@contentful/rich-text-types";
import renderInlinedHyperlink from "./inlined-hyperlink";
import renderInlinedHyperlinks from "./inlined-entry-hyperlink";
import renderInlinedAssetHyperlink from "./inlined-asset-hyperlink";
import renderInlinedEntries from "./inlined-entries";
import renderEmbeddedEntries from "./embedded-entries";
import renderEmbeddedAssets from "./embedded-assets";
import renderTypography from "./typography";
const pageRenderOptions = {
renderNode: {
[INLINES.HYPERLINK]: renderInlinedHyperlink,
[INLINES.ENTRY_HYPERLINK]: renderInlinedHyperlinks,
[INLINES.ASSET_HYPERLINK]: renderInlinedAssetHyperlink,
[INLINES.EMBEDDED_ENTRY]: renderInlinedEntries,
[BLOCKS.EMBEDDED_ENTRY]: renderEmbeddedEntries,
[BLOCKS.EMBEDDED_ASSET]: renderEmbeddedAssets,
...renderTypography,
},
};
export default pageRenderOptions;