import PropTypes from "prop-types"; import React from 'react'; import { Page, Grid, Card, Table } from "tabler-react"; import {Link} from 'react-router-dom'; const Contracts = ({contracts}) => ( Name Address State { contracts.map((contract) => { return ( {contract.className} {contract.address || 'Interface or not set to deploy'} {contract.deploy ? 'Deployed' : 'Not deployed'} ); }) }
); Contracts.propTypes = { contracts: PropTypes.arrayOf(PropTypes.object) }; export default Contracts;