"use client"; import { Card, CardContent } from "@/components/ui/card"; import RunTimer from "./components/RunTimer"; import RunChat, { ChatMessage } from "./components/RunChat"; import { FileTree } from "./components/FileTree"; import { File } from "lucide-react"; import Editor from "./components/Editor"; import useAction from "@/hook/use-action"; import { getLiveRun } from "@/modules/live-run/actions"; import ProblemCard from "../problems/components/ProblemCard"; import ProfileCard from "@/components/app/ProfileCard"; export default function Run() { const [runInfo] = useAction(getLiveRun); const chatMessages: ChatMessage[] = [ { user: "Alice", message: "Nice split!", time: "1:53" }, { user: "Bob", message: "Watch out for the string problem!", time: "1:54" }, { user: "Charlie", message: "PB incoming? 👀", time: "1:55" }, ]; return (
{/* Main column */}
{/* Top cards */}
{runInfo && }
{/* Editor */} {/* File tree – hide on small screens */}
{/* Code */}
myfile.js
{/* Timer & Chat */}
); }