import Link from "next/link"; import { formatDistance } from "date-fns"; import { EllipsisVertical, Lock, Settings, Trash } from "lucide-react"; import { Button } from "@/components/ui/button"; import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuTrigger, } from "@/components/ui/dropdown-menu"; import { ProjectType } from "@/types"; // from-red-500 to-red-500 // from-yellow-500 to-yellow-500 // from-green-500 to-green-500 // from-purple-500 to-purple-500 // from-blue-500 to-blue-500 // from-pink-500 to-pink-500 // from-gray-500 to-gray-500 // from-indigo-500 to-indigo-500 export function ProjectCard({ project, onDelete, }: { project: ProjectType; onDelete: () => void; }) { const handleDelete = () => { if ( confirm( "Are you sure you want to delete this project? This action cannot be undone." ) ) { onDelete(); } }; // from-gray-600 to-gray-600 // from-blue-600 to-blue-600 // from-green-600 to-green-600 // from-yellow-600 to-yellow-600 // from-purple-600 to-purple-600 // from-pink-600 to-pink-600 // from-red-600 to-red-600 // from-orange-600 to-orange-600 return (
{project.private ? (
Private

{project.cardData?.emoji}

) : (