Files
nextjs-notion-starter-kit/components/CustomHtml.tsx
2021-01-15 11:31:09 -05:00

12 lines
280 B
TypeScript

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} />
}