import React from 'react' import ContentTypeSelector from '../ContentTypeSelector' import CategorySelector from '../CategorySelector' import UploadSidebar from '../UploadSidebar' /** * Step2Details * * Step 2 of the upload wizard: artwork metadata. * Shows uploaded-asset summary, content type selector, * category/subcategory selectors, tags, description, and rights. */ export default function Step2Details({ headingRef, // Asset summary primaryFile, primaryPreviewUrl, isArchive, fileMetadata, screenshots, // Content type + category contentTypes, metadata, metadataErrors, filteredCategoryTree, allRootCategoryOptions, requiresSubCategory, onContentTypeChange, onRootCategoryChange, onSubCategoryChange, // Sidebar (title / tags / description / rights) suggestedTags, onChangeTitle, onChangeTags, onChangeDescription, onToggleRights, }) { return (
{/* Step header */}

Artwork details

Complete required metadata and rights confirmation before publishing.

{/* Uploaded asset summary */}

Uploaded asset

{/* Thumbnail / Archive icon */} {primaryPreviewUrl && !isArchive ? (
Uploaded artwork thumbnail
) : (
)} {/* File metadata */}

{primaryFile?.name || 'Primary file'}

{isArchive ? `Archive · ${screenshots.length} screenshot${screenshots.length !== 1 ? 's' : ''}` : fileMetadata.resolution !== '—' ? `${fileMetadata.resolution} · ${fileMetadata.size}` : fileMetadata.size}

{isArchive ? 'Archive' : 'Image'}
{/* Content type selector */}

Content type

Choose what kind of artwork this is.

Step 2a
{/* Category selector */}

Category

{requiresSubCategory ? 'Select a category, then a subcategory.' : 'Select a category.'}

Step 2b
{ if (contentTypeValue) { onContentTypeChange(contentTypeValue) } onRootCategoryChange(rootId) }} />
{/* Title, tags, description, rights */}
) }