import type { CSSProperties } from 'react'; export type LogoMarqueeProps = { heading?: string; logos?: Array<{ name: string; imageUrl?: string }>; speed?: 'slow' | 'normal' | 'fast'; direction?: 'left' | 'right'; pauseOnHover?: 'yes' | 'no'; }; export default function LogoMarquee({ heading = '', logos = [], speed = 'normal', direction = 'left', pauseOnHover = 'yes' }: LogoMarqueeProps) { const duration = speed === 'slow' ? '42s' : speed === 'fast' ? '18s' : '28s'; const items = [...logos, ...logos]; return (
{heading &&

{heading}

}
{items.map((logo, index) => (
= logos.length} className="mx-8 flex h-10 min-w-32 items-center justify-center sm:mx-12"> {logo.imageUrl ? {logo.name} : {logo.name}}
))}
); }