import { Order, useCustomer } from '@components/frontStore/customer/CustomerContext.jsx'; import { _ } from '@evershop/evershop/lib/locale/translate/_'; import React from 'react'; /** * Re-skin (2026-07-11): compact order rows (order # + date + status pill + * total) matching the /account/orders list and the reference — replaces the old * item-thumbnail rows that read heavy in the narrow account column. */ const OrderRow: React.FC<{ order: Order }> = ({ order }) => (
#{order.orderNumber}
{order.createdAt?.text}
{order.shipmentStatus?.name && ( {order.shipmentStatus.name} )} {order.status?.name && ( {order.status.name} )} {order.grandTotal.text}
); export default function OrderHistory({ title }: { title?: string }) { const { customer } = useCustomer(); const orders = customer?.orders || []; return (
{title &&

{title}

} {orders.length === 0 ? (
{_('You have not placed any orders yet')}
) : (
{orders.map((order) => ( ))}
)}
); }