import { type Book } from './Book';

type Props = {
  book: Book;
};

const Details: React.FC<Props> = ({ book }) => {
  return (
    <table>
      <tbody>
        <tr>
          <th>Titel: </th>
          <td>{book.title}</td>
        </tr>
        <tr>
          <th>Autor: </th>
          <td>{book.author}</td>
        </tr>
        <tr>
          <th>ISBN: </th>
          <td>{book.isbn}</td>
        </tr>
        <tr>
          <th>Bewertung: </th>
          <td>{book.rating}</td>
        </tr>
      </tbody>
    </table>
  );
};

export default Details;
