{#if deployments.length > 0}
Deployment History
{#if deployments.some(deployment => deployment.status === DeploymentStatus.SUCCESS)} View Your Deployed App → {/if}
{#each deployments as deployment}
{formatDate(deployment.updatedAt, "fullDate")} {formatDate(deployment.updatedAt, "timeOnly")}
{#if deployment.status.toLowerCase() === "pending"} {/if}
showErrorReasonModal(deployment.err)} class={`deployment-status ${deployment.status}`} > {deployment.status} {#if deployment.status === DeploymentStatus.FAILURE} {/if}
{/each}
{/if} {errorReason}