{#if $gameState}
{/if}
{#if showAmds}
{#if visible !== 'noOpen'}
{#if visible === 'oneOpen' && canShowOneDeck && currentCharacter}
onOpenAmd(currentCharacter.id)}
onZoom={() => onZoom(currentCharacter.id, currentCharacter)}
/>
{:else}
{#each charsWithPerks as char (char.id)}
onOpenAmd(char.id)}
onZoom={() => onZoom(char.id, char)}
/>
{/each}
{/if}
{/if}
{/if}
{#if $gameState && shouldShowAlliesDeck($gameState)}
onOpenAmd('allies')}
onZoom={() => onZoom('allies', null)}
/>
{/if}
{#if $gameState}
onOpenAmd('')}
onZoom={() => onZoom('', null)}
/>
{/if}