import { useState } from "react"; import { ArrowLeft, ArrowRight } from "lucide-react"; import { Heading } from "@/components/Heading"; export type TestimonialsProps = { tagline: string; heading: string; items: Array<{ quote: string; author: string; role: string; avatar?: string; }>; }; export function Testimonials({ tagline, heading, items }: TestimonialsProps) { const [i, setI] = useState(0); const total = items.length; const item = items[i]; return (
{item ? (
{total > 1 ? ( ) : null}
{item.quote}
{item.avatar ? ( {item.author} ) : null}

{item.author}

{item.role ? (

{item.role}

) : null}
{total > 1 ? ( ) : null} {total > 1 ? (
) : null}
) : null}
); }