import React from 'react' function themeStyle(theme) { return { '--world-accent': theme?.accent_color || '#38bdf8', '--world-accent-secondary': theme?.accent_color_secondary || '#0f172a', } } export default function WorldCard({ world, compact = false }) { if (!world) { return null } return (
{world.cover_url ? {world.title} : null}
{world.phase || world.status} {world.badge_label ? {world.badge_label} : null}

{world.title}

{world.tagline ?

{world.tagline}

: null} {world.summary ?

{world.summary}

: null}
{world.timeframe_label ?
{world.timeframe_label}
: null}
{world.theme?.label || world.type}
{world.cta_label || 'Open world'}
) }