"use client"; import { motion } from "framer-motion"; import { useTranslations } from "next-intl"; interface Review { id: number; name: string; location: string; text: string; rating: number; } interface ProductReviewsProps { locale?: string; productName?: string; } function ReviewCard({ review }: { review: Review }) { return (
{[1, 2, 3, 4, 5].map((star) => ( ))}

"{review.text}"

{review.name.charAt(0)}

{review.name}

Verified

{review.location}

); } export default function ProductReviews(_props: ProductReviewsProps) { const t = useTranslations("ProductReviews"); const reviews = t.raw("reviews") as Review[]; return (
{t("customerReviews")}

{t("whatCustomersSay")}

4.9
{[1, 2, 3, 4, 5].map((star) => ( ))}

{t("basedOnReviews")}

{[...reviews, ...reviews].map((review, index) => ( ))}
{[...reviews.slice(25), ...reviews.slice(0, 25), ...reviews.slice(25), ...reviews.slice(0, 25)].map((review, index) => ( ))}
); }