import React from 'react';

export interface CardStackProps {
  children?: React.ReactNode;
  items?: any[];
  [key: string]: any;
}

export const CardStack: React.FC<CardStackProps> = ({ children, items, ...props }) => {
  return (
    <div {...props}>
      {children}
      {items && items.map((item: any, idx: number) => (
        <div key={idx}>{JSON.stringify(item)}</div>
      ))}
    </div>
  );
};

export default CardStack;
