import { Star } from "lucide-react"; import { cn } from "@/lib/utils"; interface TrustStrip2Props { rating?: number; reviewCount?: number; customerCount?: string; pressLogos?: { name: string; logo?: string }[]; className?: string; } const DEFAULT_LOGOS = [ { name: "Forbes" }, { name: "TechCrunch" }, { name: "Vogue" }, { name: "Wired" }, { name: "GQ" }, ]; const formatRating = (value: number) => value.toLocaleString("fa-IR", { minimumFractionDigits: 1, maximumFractionDigits: 1, }); const TrustStrip2 = ({ rating = 4.9, reviewCount = 12500, customerCount = "بیش از ۱ میلیون", pressLogos = DEFAULT_LOGOS, className, }: TrustStrip2Props) => { return (
{[...Array(5)].map((_, i) => ( ))}
{formatRating(rating)} ({reviewCount.toLocaleString("fa-IR")} نظر)

مورد اعتماد{" "} {customerCount} {" "} مشتری

منتشر شده در:
{pressLogos.map((logo, index) => ( {logo.name} ))}
); }; export { TrustStrip2 };