import React from 'react' import ArtworkBreadcrumbs from './ArtworkBreadcrumbs' import WorldParticipationBadge from './WorldParticipationBadge' export default function ArtworkMeta({ artwork }) { const publisher = artwork?.publisher || null const credits = artwork?.credits || {} const contributors = Array.isArray(credits?.contributors) ? credits.contributors : [] const worldParticipation = Array.isArray(artwork?.world_participation) ? artwork.world_participation : [] return (

{artwork?.title}

{publisher?.type === 'group' ? ( Published by {publisher.name} ) : null} {contributors.length > 0 ? (
Contributors {contributors.map((item) => { const label = item.name || item.username return ( {item.profile_url ? {label} : {label}} {item.credit_role ? {item.credit_role} : null} {item.is_primary ? Lead support : null} ) })}
) : null}
) }