diff --git a/src/components/sections/team/TeamCardFive.tsx b/src/components/sections/team/TeamCardFive.tsx
index 23bdba2..5decf5d 100644
--- a/src/components/sections/team/TeamCardFive.tsx
+++ b/src/components/sections/team/TeamCardFive.tsx
@@ -1,148 +1,15 @@
-"use client";
+import { useCardAnimation } from '@/components/cardStack/CardStack';
-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, TitleSegment, ButtonAnimationType } from "@/components/cardStack/types";
-import type { TextboxLayout, InvertedBackground } from "@/providers/themeProvider/config/constants";
+export function TeamCardFive() {
+ const { animate, itemRefs } = useCardAnimation();
-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?: TitleSegment[];
- description: string;
- textboxLayout: TextboxLayout;
- useInvertedBackground: InvertedBackground;
- tag?: string;
- tagIcon?: LucideIcon;
- tagAnimation?: ButtonAnimationType;
- buttons?: ButtonConfig[];
- buttonAnimation?: ButtonAnimationType;
- ariaLabel?: string;
- className?: string;
- containerClassName?: string;
- textBoxTitleClassName?: string;
- textBoxTitleImageWrapperClassName?: string;
- textBoxTitleImageClassName?: 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,
- tagAnimation,
- buttons,
- buttonAnimation,
- ariaLabel = "Team section",
- className = "",
- containerClassName = "",
- textBoxTitleClassName = "",
- textBoxTitleImageWrapperClassName = "",
- textBoxTitleImageClassName = "",
- textBoxDescriptionClassName = "",
- textBoxClassName = "",
- textBoxTagClassName = "",
- textBoxButtonContainerClassName = "",
- textBoxButtonClassName = "",
- textBoxButtonTextClassName = "",
- gridClassName = "",
- cardClassName = "",
- mediaWrapperClassName = "",
- mediaClassName = "",
- nameClassName = "",
- roleClassName = "",
-}: TeamCardFiveProps) => {
- const { itemRefs } = useCardAnimation({ animationType, itemCount: team.length });
+ const handleAnimate = () => {
+ animate(0);
+ };
return (
-
- {member.role}
-
- {member.name}
-
-