diff --git a/src/pages/orders/Details.tsx b/src/pages/orders/Details.tsx new file mode 100644 index 0000000..f2162aa --- /dev/null +++ b/src/pages/orders/Details.tsx @@ -0,0 +1,226 @@ +import Select from '@/components/Select' +import Table from '@/components/Table' +import { Location } from 'iconsax-react' +import { type FC } from 'react' +import type { ColumnType, RowDataType } from '@/components/types/TableTypes' +import AppImage from '@/assets/images/appimage.png' + +interface OrderItem extends RowDataType { + image: string + title: string + quantity: number + amount: string +} + +const OrderDetails: FC = () => { + const orderItems: OrderItem[] = [ + { + id: 1, + image: AppImage, + title: 'پیتزا پپرونی', + quantity: 1, + amount: '۴۲,۰۰۰ تومان' + } + ] + + const columns: ColumnType[] = [ + { + title: 'تصویر', + key: 'image', + render: (item) => ( +
+ {item.title} +
+ ) + }, + { + title: 'عنوان', + key: 'title', + align: 'right' + }, + { + title: 'تعداد', + key: 'quantity', + align: 'center' + }, + { + title: 'مبلغ', + key: 'amount', + align: 'right' + } + ] + return ( +
+
+

سفارش ۱۲۳۴۵

+
+