f0f545806a
* remove sponsors, ui cleanup * fix radius * improve panel * remove cursor spline animations * migrate options * Switch hrs to divider * fix text color on menu dark mode * Remove option for clone handles * fix wheel * remove unused translations
22 lines
502 B
TypeScript
22 lines
502 B
TypeScript
import dynamic from 'next/dynamic'
|
|
import Head from 'next/head'
|
|
import { useRouter } from 'next/router'
|
|
import { useMemo } from 'react'
|
|
|
|
const Editor = dynamic(() => import('components/Editor'), { ssr: false }) as any
|
|
|
|
const Home = () => {
|
|
const { query } = useRouter()
|
|
const isExportMode = useMemo(() => 'exportMode' in query, [query])
|
|
|
|
return (
|
|
<>
|
|
<Head>
|
|
<title>tldraw</title>
|
|
</Head>
|
|
<Editor id="home" showUI={!isExportMode} />
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default Home
|