23 lines
529 B
TypeScript
Raw Normal View History

2024-04-11 03:34:58 -04:00
"use client"
import Navbar from "@/components/navbar"
2024-04-11 03:34:58 -04:00
import { useClerk } from "@clerk/nextjs"
import dynamic from "next/dynamic"
const CodeEditor = dynamic(() => import("@/components/editor"), {
ssr: false,
})
export default function CodePage() {
2024-04-11 03:34:58 -04:00
const clerk = useClerk()
return (
2024-04-09 00:50:48 -04:00
<div className="overflow-hidden overscroll-none w-screen flex flex-col h-screen bg-background">
<Navbar />
<div className="w-screen flex grow">
2024-04-11 03:34:58 -04:00
{clerk.loaded ? <CodeEditor /> : null}
</div>
</div>
)
}