mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-05-13 15:09:47 +00:00
🈂
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user