{#if inventory.length > 0} {#each SLOT_ORDER as slot, si} {@const slotCosmetics = ownedCosmetics.filter((c) => c.slot === slot)} {#if slotCosmetics.length > 0}
{SLOT_ICONS[slot]} {SLOT_LABELS[slot]} {#each slotCosmetics as cos} {@const isEquipped = equipped[slot] === cos.id}
{cos.name} {cos.description}
{/each}
{/if} {/each}
{/if}