2025-02-19 04:29:24 +00:00
|
|
|
import dynamic from "next/dynamic";
|
|
|
|
import { Skeleton } from "@/components/ui/skeleton";
|
2025-02-19 17:05:52 +00:00
|
|
|
import { ModeToggle } from "@/components/mode-toggle";
|
2025-02-19 04:29:24 +00:00
|
|
|
|
2025-02-19 17:05:52 +00:00
|
|
|
const CodeEditor = dynamic(() => import("@/components/code-editor"), {
|
|
|
|
loading: () => <Skeleton className="h-full w-full" />,
|
|
|
|
});
|
2025-02-19 01:00:15 +00:00
|
|
|
|
|
|
|
export default function Home() {
|
2025-02-19 04:29:24 +00:00
|
|
|
return (
|
|
|
|
<div className="h-screen flex flex-col">
|
2025-02-19 17:05:52 +00:00
|
|
|
<header className="h-16 flex items-center justify-end px-4 border-b">
|
|
|
|
<ModeToggle />
|
|
|
|
</header>
|
|
|
|
<div className="flex-1">
|
|
|
|
<CodeEditor />
|
|
|
|
</div>
|
2025-02-19 01:00:15 +00:00
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|