import React from 'react' import { usePage } from '@inertiajs/react' import SeoHead from '../../components/seo/SeoHead' import WorldHero from '../../components/worlds/WorldHero' import WorldCommunitySubmissionsSection from '../../components/worlds/WorldCommunitySubmissionsSection' import WorldSection from '../../components/worlds/WorldSection' import WorldCard from '../../components/worlds/WorldCard' function SupportingRail({ title, description, items }) { if (!Array.isArray(items) || items.length === 0) { return null } return (

{title}

{description ?

{description}

: null}
{items.map((item) => )}
) } export default function WorldShow() { const { props } = usePage() const world = props.world const sections = Array.isArray(props.sections) ? props.sections : [] const communitySubmissions = props.communitySubmissions || null const previewMode = Boolean(props.previewMode) return (
{previewMode ? (
Studio preview
You are viewing the editorial preview version of this world before or alongside public release.
{world?.public_url ? Open canonical page : null}
) : null} {sections.length > 0 ? sections.map((section) => ) : (
This world has been themed and published, but no curated sections have been attached yet.
)}
) }