import type { ReactElement } from 'react' import { makeStyles } from '@material-ui/core/styles' import { Table, TableBody, TableCell, TableContainer, TableRow, TableHead, Paper } from '@material-ui/core' import ClipboardCopy from '../../components/ClipboardCopy' import PeerDetailDrawer from '../../components/PeerDetail' import { PostageBatch } from '@ethersphere/bee-js' const useStyles = makeStyles({ table: { minWidth: 650, }, values: { textAlign: 'right', fontFamily: 'monospace, monospace', }, }) interface Props { postageStamps: PostageBatch[] | null } function StampsTable({ postageStamps }: Props): ReactElement | null { if (postageStamps === null) return null const classes = useStyles() return ( Batch ID Utilization {postageStamps.map(({ batchID, utilization }) => (
{utilization}
))}
) } export default StampsTable