diff --git a/src/app/(app)/playground/@description/layout.tsx b/src/app/(app)/playground/@description/layout.tsx
new file mode 100644
index 0000000..75aa61f
--- /dev/null
+++ b/src/app/(app)/playground/@description/layout.tsx
@@ -0,0 +1,33 @@
+import { FileTextIcon } from "lucide-react";
+import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+
+interface DescriptionLayoutProps {
+ children: React.ReactNode;
+}
+
+export default function DescriptionLayout({ children }: DescriptionLayoutProps) {
+ return (
+
+
+
+
+
+ Description
+
+
+
+
+
+ {children}
+
+
+ );
+}
diff --git a/src/app/(app)/playground/@problemDescription/page.tsx b/src/app/(app)/playground/@description/page.tsx
similarity index 75%
rename from src/app/(app)/playground/@problemDescription/page.tsx
rename to src/app/(app)/playground/@description/page.tsx
index 10ab28c..d22ffd8 100644
--- a/src/app/(app)/playground/@problemDescription/page.tsx
+++ b/src/app/(app)/playground/@description/page.tsx
@@ -1,6 +1,6 @@
import MdxPreview from "@/components/mdx-preview";
import { DEFAULT_PROBLEM } from "@/config/problem";
-export default function ProblemDescriptionPage() {
+export default function DescriptionPage() {
return ;
}
diff --git a/src/app/(app)/playground/@workspace/layout.tsx b/src/app/(app)/playground/@workspace/layout.tsx
new file mode 100644
index 0000000..dbb03fc
--- /dev/null
+++ b/src/app/(app)/playground/@workspace/layout.tsx
@@ -0,0 +1,33 @@
+import { CodeXmlIcon } from "lucide-react";
+import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area";
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+
+interface WorkspaceLayoutProps {
+ children: React.ReactNode;
+}
+
+export default function WorkspaceLayout({ children }: WorkspaceLayoutProps) {
+ return (
+
+
+
+
+
+ Code
+
+
+
+
+
+ {children}
+
+
+ );
+}
diff --git a/src/app/(app)/playground/page.tsx b/src/app/(app)/playground/@workspace/page.tsx
similarity index 64%
rename from src/app/(app)/playground/page.tsx
rename to src/app/(app)/playground/@workspace/page.tsx
index 95a4454..6e2714a 100644
--- a/src/app/(app)/playground/page.tsx
+++ b/src/app/(app)/playground/@workspace/page.tsx
@@ -1,5 +1,5 @@
import CodeEditor from "@/components/code-editor";
-export default function PlaygroundPage() {
+export default function WorkspacePage() {
return ;
}
diff --git a/src/app/(app)/playground/layout.tsx b/src/app/(app)/playground/layout.tsx
index d36b75f..88f9d74 100644
--- a/src/app/(app)/playground/layout.tsx
+++ b/src/app/(app)/playground/layout.tsx
@@ -5,22 +5,25 @@ import {
} from "@/components/ui/resizable";
interface PlaygroundLayoutProps {
- children: React.ReactNode;
- problemDescription: React.ReactNode;
+ description: React.ReactNode;
+ workspace: React.ReactNode;
}
export default function PlaygroundLayout({
- children,
- problemDescription,
+ description,
+ workspace,
}: PlaygroundLayoutProps) {
return (
-
-
- {problemDescription}
+
+
+ {description}
-
-
- {children}
+
+
+ {workspace}
);