"use client"; import { CalendarDaysIcon } from "lucide-react"; import { cn } from "@/lib/utils"; import Image from "next/image"; interface XMap { [tag: string]: string; } interface ProjectCardProps { name: string; description: string; joinDate: string; location: string; tags: XMap | null | never[] | string[]; imageUri: string | null; minInvestment: number; totalInvestor: number; totalRaised: number; className?: string; } export function ProjectCard(props: ProjectCardProps) { return (
{/* Image */}
{props.imageUri ? ( Card image ) : ( Card image )}
{/* Info 0 overlaps Image */}
{props.name}

{props.description}

{/* Info 1 */}
Joined {props.joinDate}
{props.location}
{props.tags.map((tag) => ( {tag} ))}
{/* Info 2 */}
{/* Info 2 (Visible on hover) */}

${props.totalRaised.toLocaleString()} committed and reserved


{props.totalInvestor.toLocaleString()} investors


${props.minInvestment.toLocaleString()} min. investment

); }