import { ArrowPathIcon } from '@heroicons/react/24/outline'; import clsx from 'clsx'; import Image from 'next/image'; import { lusitana } from '@/app/ui/fonts'; import { LatestInvoice } from '@/app/lib/definitions'; import {fetchLatestInvoices} from "@/app/lib/data"; export default async function LatestInvoices() { 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

); }