import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import NftDefaultImage from '../../app/nft-default-image/nft-default-image'; import { AvatarNetwork, BadgeWrapper, BadgeWrapperAnchorElementShape, } from '../../component-library'; import { BackgroundColor, Display, JustifyContent, Size, } from '../../../helpers/constants/design-system'; import Box from '../../ui/box/box'; export const NftItem = ({ alt, name, src, networkName, networkSrc, tokenId, onClick, clickable = false, }) => { 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, };