import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Display, AlignItems, BlockSize, JustifyContent, TextVariant, BorderRadius, TextAlign, BackgroundColor, } from '../../../helpers/constants/design-system'; import { useI18nContext } from '../../../hooks/useI18nContext'; import { Text } from '../../component-library'; import Box from '../../ui/box/box'; export default function NftDefaultImage({ name, tokenId, className, clickable = false, }) { const t = useI18nContext(); return ( {name ?? t('unknownCollection')}
#{tokenId}
); } NftDefaultImage.propTypes = { /** * The name of the NFT collection if not supplied will default to "Unnamed collection" */ name: PropTypes.string, /** * The token id of the nft */ tokenId: PropTypes.string, /** * Controls the css class for the cursor hover */ clickable: PropTypes.bool, /** * An additional className to apply to the NFT default image */ className: PropTypes.string, };