"use client" import CustomButton from "@/components/ui/customButton" import { Button } from "@/components/ui/button" import { Clock, Code2, Ellipsis, FolderDot, Globe, HelpCircle, Plus, Settings, Users, } from "lucide-react" import { useState } from "react" import ProjectCard from "./projectCard" import { Sandbox } from "@/lib/types" import Image from "next/image" import ProjectCardDropdown from "./projectCard/dropdown" import DashboardProjects from "./projects" import DashboardSharedWithMe from "./shared" type TScreen = "projects" | "shared" | "settings" | "search" export default function Dashboard({ sandboxes }: { sandboxes: Sandbox[] }) { const [screen, setScreen] = useState("projects") const activeScreen = (s: TScreen) => { if (screen === s) return "justify-start" else return "justify-start font-normal text-muted-foreground" } return (
New Project
{screen === "projects" ? ( ) : screen === "shared" ? ( ) : screen === "settings" ? null : null}
) }