From a5d2dcb85007f17308b37271b7a26d44ea5c3d11 Mon Sep 17 00:00:00 2001 From: Abbasa5251 Date: Sun, 25 May 2025 15:51:22 +0530 Subject: [PATCH] feat: Integrate tabs for code panel layout --- components/editor/code-panel.tsx | 31 ++++++++++++++++++++----------- 1 file changed, 20 insertions(+), 11 deletions(-) diff --git a/components/editor/code-panel.tsx b/components/editor/code-panel.tsx index 63480d7c..9568ca05 100644 --- a/components/editor/code-panel.tsx +++ b/components/editor/code-panel.tsx @@ -3,6 +3,7 @@ import { Button } from "@/components/ui/button"; import { Copy, Check, Heart } from "lucide-react"; import { ThemeEditorState } from "@/types/editor"; import { ScrollArea, ScrollBar } from "../ui/scroll-area"; +import { Tabs, TabsList, TabsTrigger, TabsContent } from "../ui/tabs"; import { ColorFormat } from "../../types"; import { Select, @@ -205,10 +206,13 @@ const CodePanel: React.FC = ({ themeEditorState }) => { - -
-
- index.css + +
+ + + index.css + +
- -
-            {code}
-          
- -
-
+ + +
+              {code}
+            
+ +
+
+
); };