import * as React from 'react'; import { DataGrid, GridToolbar } from '@mui/x-data-grid'; import { GridColDef } from '@mui/x-data-grid'; import { Button, Stack, Typography } from '@mui/material'; import { Chip, IconButton, Tooltip } from '@mui/material'; import { AssignmentLateOutlined, AssignmentTurnedInOutlined, Check, Download, PriceCheck, PriceCheckOutlined, Refresh, ShoppingCartCheckout } from '@mui/icons-material'; import { Card, CardContent } from '@mui/material'; import Rating from '@mui/material/Rating'; import { Dialog, DialogTitle, DialogContent, DialogActions, Grid, TextField } from '@mui/material'; import { useRouter } from 'next/router'; import { useState, useEffect } from 'react'; export default function RequestDialog() { return ( Request submitted on {formattedTime ?? ''} {(!params.row.declined && !params.row.accepted && !params.row.paid && !params.row.completed ? ( } label="Pending" variant="filled" color="secondary" /> ):null)} {(params.row.declined ? ( } label="Declined" variant="filled" color="error" /> ):null)} {(params.row.accepted ? ( } label="Accepted" variant="filled" color="info" /> ):null)} {(params.row.paid && params.row.acccepted ? ( ):null)} {(params.row.paid==false && params.row.accepted ? ( } label="Pending Payment" variant="filled" color="warning" /> ):null)} {(params.row.completed ? ( } label="Completed" variant="filled" color="success" /> ):null)} { // setValue(newValue); // }} /> ); }