import React from 'react' import PropTypes from 'prop-types' import { toDataUrl } from 'ethereum-blockies' import posed, { PoseGroup } from 'react-pose' import { fadeIn } from '../Animations' import styles from './Saved.module.css' export default function Saved({ accounts, handleDelete }) { const Item = posed.li(fadeIn) return ( {accounts.map(account => { const identicon = toDataUrl(account) return (
Blockies {account}
) })}
) } Saved.propTypes = { accounts: PropTypes.array.isRequired, handleDelete: PropTypes.func.isRequired }