import { usePriceModalStore } from "@/store/useProceModalStore"; import { Facebook, Share2 } from "lucide-react"; const socialLinks = [ { name: "telegram", icon: "✈️", color: "#0088cc" }, { name: "facebook", icon: , color: "#1877F2" }, { name: "whatsapp", icon: "💬", color: "#25D366" }, { name: "twitter", icon: "𝕏", color: "#1DA1F2" }, ]; interface RightSideProps { id: number; title: string; articular: string; status: string; description: string; price: string; image: string; } export function RightSide({ title, articular, status, description, price, id, image, }: RightSideProps) { const openModal = usePriceModalStore((state) => state.openModal); const handleGetPrice = () => { openModal({ id, name: title, image, inStock: status === "Sotuvda mavjud", }); }; // Status color logic const isInStock = status === "Sotuvda mavjud"; const statusColor = isInStock ? "bg-green-600/20 text-green-400 border border-green-600/30" : "bg-red-600/20 text-red-400 border border-red-600/30"; return (
{/* Title */}

{title}

{/* Article ID */}
Artikul: {articular}
{/* Status Badge */}
{status}
{/* Description */}

{description}

{/* Price Section */}
{/* Price */}

Narx:

${price}

{/* Action Button */} {/* Social Share */}
Ulashish:
{socialLinks.map((social) => ( {social.icon} ))}
); }