// import React from 'react'; // import { // Table, // TableBody, // TableCell, // TableContainer, // TableHead, // TableRow, // Paper, // Typography, // Button, // Box // } from '@mui/material'; // import { data1 } from './constants'; // export const TransactionsOverview = () => { // const data = [ // { state: 'Successful', count: 0, percentage: '0%', color: '#4caf50' }, // green // { state: 'Waiting', count: 0, percentage: '0%', color: '#ff9800' }, // orange // { state: 'Failed', count: 0, percentage: '0%', color: '#f44336' }, // red // { state: 'Cancelled', count: 0, percentage: '0%', color: '#9e9e9e' }, // grey // ]; // return ( // // // // // State // Count // Percentage // Action // // // // {data1.map((row) => ( // // // // // {row.state} // // // {row.count} // {row.percentage} // // // // // ))} // //
//
// ); // }; // import React from 'react'; // import { // Table, // TableBody, // TableCell, // TableContainer, // TableHead, // TableRow, // Paper, // Box, // Button // } from '@mui/material'; // import { data1 } from './constants'; // export const TransactionsOverview = () => { // return ( // // // // // State // Count // Percentage // Action // // // // {data1.map((row) => ( // // // // // {row.state} // // // {row.count} // {row.percentage} // // // // // ))} // //
//
// ); // }; import React from 'react'; import { Table, TableBody, TableCell, TableContainer, TableHead, TableRow, Paper, Box, Button } from '@mui/material'; const data1 = [ { state: 'Success', count: 120, percentage: '60%', color: 'green' }, { state: 'Pending', count: 50, percentage: '25%', color: 'orange' }, { state: 'Failed', count: 20, percentage: '10%', color: 'red' }, { state: 'Other', count: 10, percentage: '5%', color: 'gray' } ]; export const TransactionsOverviewTable = () => { return ( State Count Percentage Action {data1.map((row) => ( {row.state} {row.count} {row.percentage} ))}
); };