import React from 'react' import { router, usePage } from '@inertiajs/react' import StudioLayout from '../../Layouts/StudioLayout' export default function StudioWorldsIndex() { const { props } = usePage() const listing = props.listing || {} const items = Array.isArray(listing.items) ? listing.items : [] const filters = listing.filters || {} const updateFilter = (name, value) => { router.get('/studio/worlds', { ...filters, [name]: value }, { preserveState: true, replace: true }) } return (
New world
{items.length > 0 ? items.map((world) => (
{world.status} {world.type} {world.is_featured ? Featured : null}

{world.title}

/{world.slug}
{world.summary ?

{world.summary}

: null}
{world.timeframe_label ? {world.timeframe_label} : null} {world.relation_count} relations {world.theme_key ? {world.theme_key} : null}
Edit Preview {world.public_url ? Public : null}
)) : (
No worlds match this filter yet.
)}
) }