import './BooksList.css';

const books = [
  {
    id: 1,
    title: 'JavaScript - Das umfassende Handbuch',
    author: 'Philip Ackermann',
    isbn: '978-3836286299',
    rating: 5,
  },
  {
    id: 2,
    title: 'Clean Code',
    author: 'Robert Martin',
    isbn: '978-0132350884',
    rating: 4,
  },
  {
    id: 3,
    title: 'Design Patterns',
    author: 'Erich Gamma',
    isbn: '978-0201633610',
    rating: 5,
  },
];

function BooksList() {
  return (
    <table>
      <thead>
        <tr>
          <th>Titel</th>
          <th>Autor</th>
          <th>ISBN</th>
          <th>Bewertung</th>
        </tr>
      </thead>
      <tbody>
        <tr>
          <td>JavaScript - Das umfassende Handbuch</td>
          <td>Philip Ackermann</td>
          <td>978-3836286299</td>
          <td>*****</td>
        </tr>
        <tr>
          <td>Clean Code</td>
          <td>Robert Martin</td>
          <td>978-0132350884</td>
          <td>****</td>
        </tr>
        <tr>
          <td>Design Patterns</td>
          <td>Erich Gamma</td>
          <td>978-0201633610</td>
          <td>*****</td>
        </tr>
      </tbody>
    </table>
  );
}

export default BooksList;
