import { createBook } from '@/books/book.actions';

export default function CreateBookPage() {
  return (
    <main>
      <h1>Neues Buch anlegen</h1>

      <form action={createBook}>
        <div>
          <label>
            Titel
            <input name="title" required />
          </label>
        </div>

        <div>
          <label>
            Autor
            <input name="author" required />
          </label>
        </div>

        <div>
          <label>
            ISBN
            <input name="isbn" required />
          </label>
        </div>

        <button type="submit">Buch erstellen</button>
      </form>
    </main>
  );
}
