import { ArrowPathIcon } from "@heroicons/react/24/outline"; import clsx from "clsx"; import Image from "next/image"; import { fetchLatestInvoices } from "@/app/lib/data"; import { lusitana } from "@/app/ui/fonts"; export default async function LatestInvoices() { // Remove props const latestInvoices = await fetchLatestInvoices(); return (

Latest Invoices

{/* NOTE: comment in this code when you get to this point in the course */} {
{latestInvoices.map((invoice, i) => { return (
{`${invoice.name}'s

{invoice.name}

{invoice.email}

{invoice.amount}

); })}
}

Updated just now

); }