import Price from 'components/price'; import { authOptions } from 'lib/auth/config'; import { woocommerce } from 'lib/woocomerce/woocommerce'; import { getServerSession } from 'next-auth'; import Image from 'next/image'; import Link from 'next/link'; export default async function OrdersPage() { const data = await getServerSession(authOptions); const orders = await woocommerce.get('orders'); return (

Orders

{orders.map((order) => (
{order.line_items.map((item, i) => (
  • {item.name
    {item.name}
  • ))}
    ))}
    ); }