import React from 'react' export default function SimilarArtworksHeader({ artwork }) { if (!artwork) return null const title = artwork.title || 'Artwork' const artworkUrl = artwork.url || '#' const authorName = artwork.author_name || 'Artist' const authorHref = artwork.author_profile_url || (artwork.author_username ? `/@${artwork.author_username}` : null) const browseHref = artwork.browse_url || (artwork.content_type_slug ? `/${artwork.content_type_slug}` : '/explore') const thumbUrl = artwork.thumb_lg || artwork.thumb_md || null const thumbSrcSet = artwork.thumb_srcset || undefined const tags = Array.isArray(artwork.tag_slugs) ? artwork.tag_slugs.filter(Boolean) : [] return (
{thumbUrl ? ( {title} ) : (
Preview unavailable
)}
Visual discovery

Artworks similar to{' '} {title}

Browse visually related artworks, compare style cues, and jump back into the original piece whenever you need context.

{artwork.author_avatar ? ( {authorName} ) : null} {authorHref ? ( {authorName} ) : ( {authorName} )} {artwork.category_name ? ( {artwork.category_name} ) : null} {artwork.content_type_name ? ( {artwork.content_type_name} ) : null}
{tags.length > 0 ? (
{tags.map((tagSlug) => ( #{tagSlug} ))}
) : null}
) }