Files
parsshop/components/dashboard/overview.tsx
2026-04-30 18:55:28 +03:30

29 lines
1.1 KiB
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
const OrdersTab = ({ orders }:any) => {
return (
<div className="space-y-4">
{orders.map((order:any) => (
<div key={order.id} className="bg-white rounded-2xl border border-gray-100 shadow-sm">
<div className="p-6 flex items-center justify-between border-b border-gray-100">
<div>
<h3 className="text-lg font-bold text-gray-800">{order.id}</h3>
<p className="text-sm text-gray-500 mt-1">
ثبت سفارش: {order.regDate}
</p>
</div>
<span className={`px-3 py-1 rounded-full text-xs font-bold ${
order.statusColor === 'amber'
? 'bg-amber-100 text-amber-700'
: 'bg-green-100 text-green-700'
}`}>
{order.status}
</span>
</div>
</div>
))}
</div>
);
};
export default OrdersTab;