/* 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 (
Name | Address |
---|---|
{collection.name}
|
{collection.contractAddress?.startsWith('stars')
? truncateAddress(collection.contractAddress)
: collection.contractAddress}
|