import React from "react"; import Image from "next/image"; export interface CustomTestimonialCardProps extends React.HTMLAttributes { quote: string; author: string; role?: string; avatar?: string; rating?: number; lineClamp?: boolean; } export const CustomTestimonialCard = React.forwardRef( ({ quote, author, role, avatar, rating, lineClamp, className, ...props }, ref) => { return (
{rating && (
{Array.from({ length: 5 }).map((_, i) => ( ))}
)}

"{quote}"

{avatar ? ( {author} ) : (
{author.charAt(0)}
)}
{author} {role && {role}}
); } ); CustomTestimonialCard.displayName = "CustomTestimonialCard";