import { Box, Divider, Paper, Stack, Typography } from "@mui/material"; import { statusNumber } from "../../../helpers"; import { DashboardOrderGood } from "./DashboardOrderGood"; export const DashboardOrder = ({ order }) => { const { price = null, createdAt, orderGoods = [], status } = order || {}; return ( Дата: {new Date(+createdAt * 1000).toLocaleDateString()} Сума: {price || " - "} Статус: {"" + status?.length ? statusNumber[+order.status] : "-"} {(orderGoods || []).map((orderGood) => ( ))} ); };