'use client';
import React from 'react';
import Card from './Card';
import { ExamType } from '../_types/Types';

interface ListProps {
  items: ExamType[];
}

const ExamsList: React.FC<ListProps> = ({ items }) => {
  return (
    <ul className="flex flex-wrap gap-6 justify-center my-20">
      {items?.map((item) => (
        <Card key={item.id} item={item} />
      ))}
    </ul>
  );
};

export default ExamsList;