'use server'; import { authOptions } from 'lib/auth/config'; import { woocommerce } from 'lib/woocomerce/woocommerce'; import { getServerSession } from 'next-auth'; export default async function PersonalArea() { const session = await getServerSession(authOptions); if (!session?.user?.store_id) { return { status: 401, body: { error: 'User not logged' } }; } const customer = await woocommerce.get('customers', { id: session?.user.store_id }); return (

Personal Area

); }