2024-04-11 03:34:58 -04:00
|
|
|
"use client"
|
|
|
|
|
2024-04-09 00:26:22 -04:00
|
|
|
import Navbar from "@/components/navbar"
|
2024-04-11 03:34:58 -04:00
|
|
|
import { useClerk } from "@clerk/nextjs"
|
2024-04-09 00:26:22 -04:00
|
|
|
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()
|
|
|
|
|
2024-04-09 00:26:22 -04:00
|
|
|
return (
|
2024-04-09 00:50:48 -04:00
|
|
|
<div className="overflow-hidden overscroll-none w-screen flex flex-col h-screen bg-background">
|
2024-04-09 00:26:22 -04:00
|
|
|
<Navbar />
|
|
|
|
<div className="w-screen flex grow">
|
2024-04-11 03:34:58 -04:00
|
|
|
{clerk.loaded ? <CodeEditor /> : null}
|
2024-04-09 00:26:22 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
}
|