import React from 'react' import { Link } from 'gatsby' import Dotdotdot from 'react-dotdotdot' import { MetaDataMarket } from '../../@types/MetaData' import Tags from '../atoms/Tags' import Price from '../atoms/Price' import styles from './AssetTeaser.module.css' declare type AssetTeaserProps = { did: string metadata: MetaDataMarket } const AssetTeaser: React.FC = ({ did, metadata }: AssetTeaserProps) => { const { name, price } = metadata.main const { description, copyrightHolder, tags, categories, access } = metadata.additionalInformation return (

{name}

{access === 'Compute' && (
{access}
)}
{description || ''} {tags && ( )}
) } export default AssetTeaser