{#if commanders.length > 0}
{#each commanders as commander}
{commander.name}
{#if archived}
Archived
{/if}
onEdit(commander)} class="text-indigo-600 hover:text-indigo-800 text-xl font-medium opacity-100" > Edit
onDelete(commander)} class="text-red-600 hover:text-red-800 text-xl font-medium opacity-100" > Delete
{#each getColorIcons(commander.colors) as icon}
{/each}
{commander.totalGames || 0}
Games Played
{Number(commander.winRate || 0).toFixed(1)}%
Win Rate
{Number(commander.avgRounds || 0).toFixed(1)}
Avg Rounds
Added
{formatDate(commander.createdAt)}
{/each}
{/if}