{#if statusHistory}
{#if showHistory}
{#if statusHistory.length > 1}
{#each statusHistory as status, idx} {#if idx !== statusHistory.length - 1}
{/if} {/each}
{/if}
{/if} {#if statusHistory.length > 0} {@const status = statusHistory.at(-1)} {/if}
{/if}