import { Book } from "@/lib/types"; import { fetchBooks } from "@/lib/api"; import { Ad } from "@/lib/types"; export const metadata = { title: 'Null Translation Group', description: 'This is the Something page description.', }; export default async function HomePage() { let books: Book[] = []; try { books = await fetchBooks(); } catch (error) { return ( console.log(error),
Error fetching books. Please try again later.
); } return (
🌟 Join Us on Patreon for Unreleased Chapters!
{books.map((book: Book) => { const cover = book.cover?.at(0); return (
{book.cover?.at(0)?.url && (
{cover?.alternativeText
)}

{book.title}

Author: {book.author}

{book.description}

Read Book
)})}
); }