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