From 6f26be611907e0dcf8a71c10b4815aeb67623568 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Mon, 24 Mar 2025 19:56:06 +0800 Subject: [PATCH] feat(playground): add AI layout with bot tab --- src/app/(app)/problems/[id]/@ai/layout.tsx | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/app/(app)/problems/[id]/@ai/layout.tsx diff --git a/src/app/(app)/problems/[id]/@ai/layout.tsx b/src/app/(app)/problems/[id]/@ai/layout.tsx new file mode 100644 index 0000000..9f787f4 --- /dev/null +++ b/src/app/(app)/problems/[id]/@ai/layout.tsx @@ -0,0 +1,32 @@ +import { BotIcon } from "lucide-react"; +import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; + +interface AiLayoutProps { + bot: React.ReactNode; +} + +export default function AiLayout({ + bot, +}: AiLayoutProps) { + return ( + + + + + + + + + + {bot} + + + ); +}