'use client';

type Props = { onDelete: (id: number) => Promise<void>; id: number };

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

export default DeleteButton;
