Matches

{data.matches.length} match{data.matches.length !== 1 ? 'es' : ''} {#if liveMatches.length > 0} · {liveMatches.length} live {/if}

{#if showCreate}
{ createError = ''; return async ({ result, update }) => { if (result.type === 'failure' || (result.type === 'success' && (result.data as any)?.error)) { createError = (result.data as any)?.error ?? 'Failed to create match'; } else { await update(); } }; }} class="mt-4 rounded-lg border border-accent/20 bg-surface-800 p-5" >

Create Match

{#if createError}

{createError}

{/if}
{/if} {#if liveMatches.length > 0}

Live Now

{/if}
{#if liveMatches.length > 0}

Past Matches

{/if}