{getDisplayName(name)} { const placeholder = type === 'character' ? '/images/placeholders/placeholder-character-main.png' : type === 'summon' ? '/images/placeholders/placeholder-summon-main.png' : '/images/placeholders/placeholder-weapon-main.png' ;(e.currentTarget as HTMLImageElement).src = placeholder }} />

{getDisplayName(name)}

{#if element !== undefined} {/if} {#if (type === 'character' || type === 'weapon') && proficiency} {#if Array.isArray(proficiency)} {#if proficiency[0] !== undefined} {/if} {#if proficiency[1] !== undefined} {/if} {:else if proficiency !== undefined} {/if} {/if}
{#if showEdit}
{#if editMode} {:else} {/if}
{/if}