mirror of
https://github.com/d0zingcat/nextjs-notion-starter-kit.git
synced 2026-06-09 15:11:24 +00:00
feat: initial webapp structure from notion2site
This commit is contained in:
11
components/CustomHtml.tsx
Normal file
11
components/CustomHtml.tsx
Normal file
@@ -0,0 +1,11 @@
|
||||
import * as React from 'react'
|
||||
import InnerHTML from 'dangerously-set-html-content'
|
||||
import * as types from '../lib/types'
|
||||
|
||||
export const CustomHtml: React.FC<{ site: types.Site }> = ({ site }) => {
|
||||
if (!site.html) {
|
||||
return null
|
||||
}
|
||||
|
||||
return <InnerHTML html={site.html} />
|
||||
}
|
||||
Reference in New Issue
Block a user