From f4078cb985e3bc1c7bfab60a28ef756fea155344 Mon Sep 17 00:00:00 2001 From: cfngc4594 Date: Sun, 9 Mar 2025 18:15:48 +0800 Subject: [PATCH] feat(layout): add terminal layout with Tabs and ScrollArea for testcase display --- .../(app)/problems/[id]/@terminal/layout.tsx | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 src/app/(app)/problems/[id]/@terminal/layout.tsx diff --git a/src/app/(app)/problems/[id]/@terminal/layout.tsx b/src/app/(app)/problems/[id]/@terminal/layout.tsx new file mode 100644 index 0000000..de8dcde --- /dev/null +++ b/src/app/(app)/problems/[id]/@terminal/layout.tsx @@ -0,0 +1,30 @@ +import { SquareCheckIcon } from "lucide-react"; +import { ScrollArea, ScrollBar } from "@/components/ui/scroll-area"; +import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; + +interface TerminalLayoutProps { + testcase: React.ReactNode; +} + +export default function TerminalLayout({ testcase }: TerminalLayoutProps) { + return ( + + + + + + + + + + {testcase} + + + ); +}