"use client"; import { Sandbox } from "@/lib/types"; import { Ellipsis, Globe, Lock, Trash2 } from "lucide-react"; import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; export default function ProjectCardDropdown({ sandbox, onVisibilityChange, onDelete, }: { sandbox: Sandbox; onVisibilityChange: (sandbox: Sandbox) => void; onDelete: (sandbox: Sandbox) => void; }) { return ( { e.preventDefault(); e.stopPropagation(); }} className="h-6 w-6 flex items-center justify-center transition-colors bg-transparent hover:bg-muted-foreground/25 rounded-sm outline-foreground" > { e.stopPropagation(); onVisibilityChange(sandbox); }} className="cursor-pointer" > {sandbox.visibility === "public" ? ( <> Make Private ) : ( <> Make Public )} { e.stopPropagation(); onDelete(sandbox); }} className="!text-destructive cursor-pointer" > Delete Project ); }