"use client"; import CardStackTextBox from "@/components/cardStack/CardStackTextBox"; import MediaContent from "@/components/shared/MediaContent"; import { useCardAnimation } from "@/components/cardStack/hooks/useCardAnimation"; import { cls } from "@/lib/utils"; import type { LucideIcon } from "lucide-react"; import type { ButtonConfig, CardAnimationType, Elevate Your Brand with Expert Copywriting and Content EnhancementSegment } from "@/components/cardStack/types"; import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants"; type TeamMember = { id: string; name: string; role: string; imageSrc?: string; videoSrc?: string; imageAlt?: string; videoAriaLabel?: string; }; interface TeamCardFiveProps { team: TeamMember[]; animationType: CardAnimationType; title: string; titleSegments?: Elevate Your Brand with Expert Copywriting and Content EnhancementSegment[]; description: string; textboxLayout: TextboxLayout; useInvertedBackground: InvertedBackground; tag?: string; tagIcon?: LucideIcon; buttons?: ButtonConfig[]; ariaLabel?: string; className?: string; containerClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageWrapperClassName?: string; textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageClassName?: string; textBoxDescriptionClassName?: string; textBoxClassName?: string; textBoxTagClassName?: string; textBoxButtonContainerClassName?: string; textBoxButtonClassName?: string; textBoxButtonTextClassName?: string; gridClassName?: string; cardClassName?: string; mediaWrapperClassName?: string; mediaClassName?: string; nameClassName?: string; roleClassName?: string; } const TeamCardFive = ({ team, animationType, title, titleSegments, description, textboxLayout, useInvertedBackground, tag, tagIcon, buttons, ariaLabel = "Team section", className = "", containerClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageWrapperClassName = "", textBoxElevate Your Brand with Expert Copywriting and Content EnhancementImageClassName = "", textBoxDescriptionClassName = "", textBoxClassName = "", textBoxTagClassName = "", textBoxButtonContainerClassName = "", textBoxButtonClassName = "", textBoxButtonTextClassName = "", gridClassName = "", cardClassName = "", mediaWrapperClassName = "", mediaClassName = "", nameClassName = "", roleClassName = "", }: TeamCardFiveProps) => { const { itemRefs } = useCardAnimation({ animationType, itemCount: team.length }); return (
{team.map((member, index) => (
{ itemRefs.current[index] = el; }} className={cls("relative flex flex-col items-center text-center w-[55%] md:w-[28%] -mx-[4%] md:-mx-[2%]", cardClassName)} >

{member.name}

{member.role}

))}
); }; TeamCardFive.displayName = "TeamCardFive"; export default TeamCardFive;