import { usePriceModalStore } from "@/store/useProceModalStore"; import { Instagram, Send, Share2 } from "lucide-react"; import { useTranslations } from "next-intl"; 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 t = useTranslations(); 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 */}

{t("products.price")}:

${price}

{/* Action Button */} {/* Social Share */}
{t("products.share")}:
{/* */}
); }