/* eslint-disable eslint-comments/disable-enable-pair */ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ /* eslint-disable jsx-a11y/img-redundant-alt */ import { truncateAddress } from 'utils/wallet' export interface ClickableCollection { contractAddress: string name: string media: string onClick: () => void } export function CollectionsTable({ collections }: { collections: ClickableCollection[] }) { return ( {collections ? collections?.map((collection) => ( )) : null}
Name Address
Collection Image
{collection.name}
{collection.contractAddress?.startsWith('stars') ? truncateAddress(collection.contractAddress) : collection.contractAddress}
) }