feat: initial webapp structure from notion2site

This commit is contained in:
Travis Fischer
2021-01-15 11:31:09 -05:00
parent 253400fba9
commit 5765d3f5bc
47 changed files with 1894 additions and 68 deletions

11
components/CustomHtml.tsx Normal file
View 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} />
}