import { useState } from "react"; import { ArrowLeft, ArrowRight } from "lucide-react"; import { Typography } from "@/components/Typography"; 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 (
{tagline ? (

{tagline}

) : null} {heading ? {heading} : null} {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}
); }