import { GridColDef, GridRenderCellParams } from '@mui/x-data-grid-premium'; import Chip from '@mui/material/Chip'; import { formatCurrency, formatDate, getStatusColor, getStatusLabel, } from '../../utils/orderFormatters'; export const createInformationPanelColumns = (): GridColDef[] => [ { field: 'customerName', headerName: 'Cliente', minWidth: 180, flex: 1.5, description: 'Nome do cliente do pedido', }, { field: 'storeId', headerName: 'Filial', width: 60, align: 'center', headerAlign: 'center', description: 'Código da filial', }, { field: 'createDate', headerName: 'Data Criação', width: 95, align: 'center', headerAlign: 'center', description: 'Data de criação do pedido', valueFormatter: (value) => formatDate(value as string), }, { field: 'status', headerName: 'Situação', width: 90, align: 'center', headerAlign: 'center', description: 'Situação atual do pedido', renderCell: (params: Readonly) => ( ), }, { field: 'paymentName', headerName: 'Forma Pgto', minWidth: 100, flex: 1, description: 'Forma de pagamento utilizada', }, { field: 'billingName', headerName: 'Cond. Pgto', minWidth: 100, flex: 1, description: 'Condição de pagamento', }, { field: 'amount', headerName: 'Valor', width: 100, align: 'right', headerAlign: 'right', description: 'Valor total do pedido', valueFormatter: (value) => formatCurrency(value as number), }, { field: 'deliveryType', headerName: 'Tipo Entrega', minWidth: 100, flex: 1, description: 'Tipo de entrega selecionado', }, { field: 'deliveryLocal', headerName: 'Local Entrega', minWidth: 120, flex: 1.2, description: 'Local de entrega do pedido', }, ];