From 080e9b0ae5c28fde172c164f792da141eec5c4dd Mon Sep 17 00:00:00 2001 From: bender Date: Wed, 11 Mar 2026 20:16:28 +0000 Subject: [PATCH] Update src/components/cardStack/CardStack.tsx --- src/components/cardStack/CardStack.tsx | 33 +++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/components/cardStack/CardStack.tsx b/src/components/cardStack/CardStack.tsx index 10562a0..6ac66da 100644 --- a/src/components/cardStack/CardStack.tsx +++ b/src/components/cardStack/CardStack.tsx @@ -1,23 +1,24 @@ -"use client"; +import { ReactNode } from 'react'; +import { CardStackProvider, CardStackContextType } from './CardStackContext'; -import React from 'react'; -import { TimelineBase } from '@/components/cardStack/layouts/timelines/TimelineBase'; - -interface CardStackProps { - items?: Array<{ id: string; title: string; description: string }>; +export interface CardStackProps { + children: ReactNode; className?: string; + ariaLabel?: string; } -const CardStack: React.FC = ({ items = [], className = '' }) => { - if (!items || items.length === 0) { - return
No items to display
; - } +export default function CardStack({ children, className = '', ariaLabel = 'Card stack' }: CardStackProps) { + const contextValue: CardStackContextType = { + isVisible: true, + getAnimationProps: () => ({ isVisible: true }), + itemRefs: {} + }; return ( -
- -
+ +
+ {children} +
+
); -}; - -export default CardStack; +}