"use client"; type Testimonial = { name: string; role: string; quote: string; avatar: string; }; type InfiniteMovingCardsProps = { items: Testimonial[]; direction?: "left" | "right"; speed?: "slow" | "normal"; }; export function InfiniteMovingCards({ items, direction = "left", speed = "normal" }: InfiniteMovingCardsProps) { const repeatedItems = [...items, ...items]; return (
{repeatedItems.map((item, index) => (
{item.name} {item.role}
{item.quote}
))}
); }