import { BadgeCheck, Headphones, RotateCcw, Shield, Star, Truck, } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Separator } from "@/components/ui/separator"; import { cn } from "@/lib/utils"; interface TrustStrip4Props { rating?: number; reviewCount?: number; className?: string; } const formatRating = (value: number) => value.toLocaleString("fa-IR", { minimumFractionDigits: 1, maximumFractionDigits: 1, }); const FEATURES = [ { icon: , text: "ارسال رایگان برای سفارش‌های بالای ۷۵ ریال", }, { icon: , text: "مرجوعی رایگان تا ۳۰ روز", }, { icon: , text: "گارانتی ۲ ساله" }, { icon: , text: "پشتیبانی ۲۴/۷" }, ]; const TrustStrip4 = ({ rating = 4.8, reviewCount = 25000, className, }: TrustStrip4Props) => { return (
{[...Array(5)].map((_, i) => ( ))}
{formatRating(rating)}
بیش از {reviewCount.toLocaleString("fa-IR")} نظر تأییدشده
{FEATURES.map((feature, index) => (
{feature.icon} {feature.text}
))}
فروشنده تأییدشده
); }; export { TrustStrip4 };