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