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) => (
= items.length} className="landing-testimonial-card flex-[0_0_340px] min-h-[188px] rounded-[9px] m-0 p-[22px] max-[760px]:flex-[0_0_286px] max-[760px]:min-h-[210px] max-[760px]:p-[18px]" key={`${item.name}-${index}`}>
{item.name} {item.role}
{item.quote}
))}
); }