"use client"; import Image from "next/image"; import Marquee from "react-fast-marquee"; import CardStackTextBox from "@/components/cardStack/CardStackTextBox"; import { cls } from "@/lib/utils"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, TitleSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; interface SocialProofOneProps { logos: string[]; title: string; titleSegments?: TitleSegment[]; description: string; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; speed?: number; showCard?: boolean; ariaLabel?: string; className?: string; containerClassName?: string; textBoxTitleClassName?: string; titleImageWrapperClassName?: string; titleImageClassName?: string; textBoxDescriptionClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; contentClassName?: string; logoItemClassName?: string; logoCardClassName?: string; logoImageClassName?: string; } const SocialProofOne = ({ logos, title, titleSegments, description, tag, tagIcon, buttons, textboxLayout, useInvertedBackground, speed = 40, showCard = true, ariaLabel = "Social proof section", className = "", containerClassName = "", textBoxTitleClassName = "", titleImageWrapperClassName = "", titleImageClassName = "", textBoxDescriptionClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", contentClassName = "", logoItemClassName = "", logoCardClassName = "", logoImageClassName = "", }: SocialProofOneProps) => { const repeatedLogos = [...logos, ...logos, ...logos]; return (
{(title || description) && ( )}
{repeatedLogos.map((src, i) => (
{`Partner
))}
); }; SocialProofOne.displayName = "SocialProofOne"; export default SocialProofOne;