This commit is contained in:
Travis Fischer
2024-11-01 00:59:37 -05:00
parent eac21320c4
commit 163fda453c

View File

@@ -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<Partial<NotionComponents>>(
() => ({
nextImage: Image,
nextLegacyImage: Image,
nextLink: Link,
Code,
Collection,