import React from "react"; import { TestimonialCardProps } from "./types"; import clsx from "clsx"; import Image from "next/image"; import { MaterialIcon } from "@shared/components/material-icon"; import { Text } from "@shared/components/text"; export const TestimonialCard: React.FC = ({ title, quote, rating, author, role, avatarUrl, isActive = false, className, }) => { return (
{title}
{quote}
{/* Rating Stars */} {rating ? (
{[...Array(5)].map((_, i) => (
) : null}
{/* Author Block */} {author && (
{avatarUrl ? ( {author} ) : (
{author.charAt(0)}
)}
{author} {role}
)}
); }; export default TestimonialCard;