'use client';

import { deleteBook } from './book.actions';

type Props = { id: number };

const DeleteButton: React.FC<Props> = ({ id }) => {
  return <button onClick={() => deleteBook(id)}>löschen</button>;
};

export default DeleteButton;
