"use client" import Logo from "@/assets/logo.svg" import { Button } from "@/components/ui/button" import { ThemeSwitcher } from "@/components/ui/theme-switcher" import UserButton from "@/components/ui/userButton" import { Sandbox, User } from "@/lib/types" import { Pencil, Users } from "lucide-react" import Image from "next/image" import Link from "next/link" import { useState } from "react" // import { Avatars } from "../live/avatars" import DeployButtonModal from "./deploy" import DownloadButton from "./downloadButton" import EditSandboxModal from "./edit" import RunButtonModal from "./run" import ShareSandboxModal from "./share" export default function Navbar({ userData, sandboxData, shared, }: { userData: User sandboxData: Sandbox shared: { id: string; name: string; avatarUrl: string }[] }) { const [isEditOpen, setIsEditOpen] = useState(false) const [isShareOpen, setIsShareOpen] = useState(false) const [isRunning, setIsRunning] = useState(false) const isOwner = sandboxData.userId === userData.id return ( <>
Logo
{sandboxData.name} {isOwner ? ( ) : null}
{/* */} {isOwner ? ( <> {/* */} ) : null}
) }