import React from 'react' import TagPicker from '../tags/TagPicker' import Checkbox from '../../Components/ui/Checkbox' import RichTextEditor from '../forum/RichTextEditor' import SchedulePublishPicker from './SchedulePublishPicker' export default function UploadSidebar({ title = 'Artwork details', description = 'Complete metadata before publishing', showHeader = true, metadata, suggestedTags = [], errors = {}, publishMode, scheduledAt, timezone, onPublishModeChange, onScheduleAt, onChangeTitle, onChangeTags, onChangeDescription, onToggleMature, onToggleRights, }) { return (
{showHeader && (

{title}

{description}

)}

Basics

Add a clear title and short description.

Tags

Use keywords people would search for. Press Enter, comma, or Tab to add a tag.

onChangeTags?.(nextTags)} suggestedTags={suggestedTags} maxTags={15} searchEndpoint="/api/tags/search" popularEndpoint="/api/tags/popular" error={errors.tags} />
{typeof publishMode === 'string' && typeof onPublishModeChange === 'function' && (

Publish settings

Choose whether this artwork should publish immediately or on a schedule.

)}
onToggleMature?.(event.target.checked)} variant="accent" size={20} label="Mark this artwork as mature content." hint="Use this for NSFW, explicit, or otherwise age-restricted artwork." />
onToggleRights?.(event.target.checked)} variant="emerald" size={20} label="I confirm I own the rights to this content." hint="Required before publishing." error={errors.rights} required />
) }