import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { useSelector } from 'react-redux'; import NftDefaultImage from '../../app/nft-default-image/nft-default-image'; import { AvatarNetwork, BadgeWrapper, BadgeWrapperAnchorElementShape, Box, } from '../../component-library'; import { BackgroundColor, Display, JustifyContent, Size, } from '../../../helpers/constants/design-system'; import { getTestNetworkBackgroundColor } from '../../../selectors'; export const NftItem = ({ alt, name, src, networkName, networkSrc, tokenId, onClick, clickable = false, }) => { const testNetworkBackgroundColor = useSelector(getTestNetworkBackgroundColor); return ( } > {src ? ( ) : ( )} ); }; NftItem.propTypes = { src: PropTypes.string, alt: PropTypes.string.isRequired, name: PropTypes.string.isRequired, networkName: PropTypes.string.isRequired, networkSrc: PropTypes.string.isRequired, tokenId: PropTypes.string.isRequired, onClick: PropTypes.func, clickable: PropTypes.bool, };