diff --git a/components/NotionPage.tsx b/components/NotionPage.tsx index f1ed171..47a655d 100644 --- a/components/NotionPage.tsx +++ b/components/NotionPage.tsx @@ -7,7 +7,7 @@ import { type PageBlock } from 'notion-types' import { formatDate, getBlockTitle, getPageProperty } from 'notion-utils' import * as React from 'react' import BodyClassName from 'react-body-classname' -import { NotionRenderer } from 'react-notion-x' +import { type NotionComponents, NotionRenderer } from 'react-notion-x' import TweetEmbed from 'react-tweet-embed' import { useSearchParam } from 'react-use' @@ -150,9 +150,9 @@ export function NotionPage({ const router = useRouter() const lite = useSearchParam('lite') - const components = React.useMemo( + const components = React.useMemo>( () => ({ - nextImage: Image, + nextLegacyImage: Image, nextLink: Link, Code, Collection,