import React from "react"; import { motion } from "framer-motion"; import { Star } from "lucide-react"; interface PortfolioTestimonialProps { logo: string | React.ReactNode; // can be an image URL or React component alt?: string; rating?: number; // default 5 testimonial: string; clientName: string; clientRole: string; maxWidth?: string; // optional, e.g., "max-w-4xl" } const PortfolioTestimonial: React.FC = ({ logo, alt = "Client Logo", rating = 5, testimonial, clientName, clientRole, maxWidth = "max-w-4xl", }) => { return (
{/* Logo */} {typeof logo === "string" ? (
{alt}
) : (
{logo}
)} {/* Rating */}
{[...Array(rating)].map((_, i) => ( ))}
{/* Testimonial */}
{testimonial}
{/* Client Info */}
{clientName}
{clientRole}
); }; export default PortfolioTestimonial;