import React from "react"; import { Star } from "lucide-react"; import { cn } from "../../lib/utils"; // Adjust path if needed import { CountUp } from "./count-up"; interface TrustedUsersProps { avatars: string[]; rating?: number; totalUsersText?: number; caption?: string; className?: string; starColorClass?: string; ringColors?: string[]; } export const TrustedUsers: React.FC = ({ avatars, rating = 5, totalUsersText = 1000, // ✅ default as number caption = "Trusted by", className = "", starColorClass = "text-yellow-400", ringColors = [], }) => { return (
{avatars.map((src, i) => (
{`Avatar
))}
{Array.from({ length: rating }).map((_, i) => ( ))}
{caption} Pro users
); };