import React from 'react' import { usePage } from '@inertiajs/react' import StudioLayout from '../../Layouts/StudioLayout' export default function StudioGroupChallenges() { const { props } = usePage() const items = Array.isArray(props.listing?.items) ? props.listing.items : [] return (
Challenges keep the group active between releases and give members a focused creative prompt.
{props.createUrl ? Create challenge : null}
{items.length > 0 ? items.map((challenge) => (

{challenge.title}

{challenge.status}

{challenge.summary || 'Challenge page'}

{challenge.entry_count || 0} linked entries
)) :
No challenges yet.
}
) }