import { format } from 'date-fns'; import PropTypes from 'prop-types'; import ArrowRightIcon from '@heroicons/react/24/solid/ArrowRightIcon'; import ArrowTopRightOnSquareIcon from '@heroicons/react/24/solid/ArrowTopRightOnSquareIcon'; import { Box, Button, Card, CardActions, CardHeader, Divider, SvgIcon, Table, TableBody, TableCell, TableHead, TableRow } from '@mui/material'; import { Scrollbar } from 'src/components/scrollbar'; import { SeverityPill } from 'src/components/severity-pill'; import { useRouter } from 'next/router'; const statusMap = { Associating: 'warning', Online: 'success', Offline: 'error' }; export const OverviewLatestOrders = (props) => { const { orders = [], sx } = props; const router = useRouter() return ( SN MODEL CUSTOMER VENDOR VERSION STATUS {orders.map((order) => { return ( {order.SN} {order.Model} {order.Customer} {order.Vendor} {order.Version} {order.Status} ); })}
{/* */}
); }; OverviewLatestOrders.prototype = { orders: PropTypes.array, sx: PropTypes.object };