"use client"; import Image from "next/image"; import Link from "next/link"; import { ArrowRight } from "lucide-react"; interface ProductCardProps { title: string; name: string; image: string; slug: string; status: "full" | "empty" | "withOrder"; } export default function ProductCard({ title, name, image, slug, status, }: ProductCardProps) { const statusColor = status === "full" ? "text-green-500" : status === "empty" ? "text-red-600" : "text-yellow-800"; const statusText = status === "full" ? "Sotuvda mavjud" : status === "empty" ? "Sotuvda qolmagan" : "Buyurtma asosida"; return (
{/* Image Container */}
{title}
{/* Content Container */}
{/* Title */}

{title}

{/* Meta Information */}
{name} {statusText}
{/* Read More Link */} Read More
); }