import { Avatar, Divider, Image, Row, Space, Tag, Tooltip, Typography } from 'antd'; import React from 'react'; import { Link } from 'react-router-dom'; import { EntityType } from '../../types.generated'; import defaultAvatar from '../../images/default_avatar.png'; import { useEntityRegistry } from '../useEntityRegistry'; interface Props { name: string; logoUrl?: string; url: string; description: string; type: string; platform: string; qualifier?: string | null; tags: Array; owners: Array<{ urn: string; name?: string; photoUrl?: string }>; } const styles = { row: { width: '100%' }, leftColumn: { maxWidth: '75%' }, rightColumn: { maxWidth: '25%' }, logoImage: { width: '48px' }, name: { color: '#214F55', fontSize: '18px' }, typeName: { color: '#585858' }, platformName: { color: '#585858' }, ownedBy: { color: '#585858' }, }; export default function DefaultPreviewCard({ name, logoUrl, url, description, type, platform, qualifier, tags, owners, }: Props) { const entityRegistry = useEntityRegistry(); return ( {logoUrl && } {name} } size={16}> {type} {platform} {qualifier} {description} {tags.map((tag) => ( {tag} ))} Owned By {owners.map((owner) => ( ))} ); }