import Image from "next/image"; export interface TestimonialCardProps { id: string; title: string; content: string; author?: string; rating?: number; image?: string; publishedAt: string; } export const TestimonialCard = ({ id, title, content, author, rating, image, publishedAt, }: TestimonialCardProps) => { return (
{/* Rating stars if provided */} {rating && (
{[...Array(5)].map((_, index) => ( ))}
)} {/* Title */}

{title}

{/* Content */}

{content}

{/* Author info */} {author && (
{image && ( {author} )}

{author}

{new Date(publishedAt).toLocaleDateString()}
)}
); };