import React from 'react';
import { CardStack, CardStackProps } from './CardStack';

interface CardListProps extends Omit<CardStackProps, 'children'> {
  children: React.ReactNode[];
}

export const CardList: React.FC<CardListProps> = (props) => {
  return <CardStack {...props}>{props.children}</CardStack>;
};

export default CardList;