communityState.closeDetail()} > {#if theme}

{theme.name}

{formatCustomThemeStatus(theme.status)}
{#if theme.status === "rejected" && theme.rejection_reason}

Rejection reason

{theme.rejection_reason}

{/if} {#if communityState.detailLoading}
{:else}
Submitted
{formatThemeDate(theme.created_at)}
Last updated
{formatThemeDate(theme.updated_at)}
{#if theme.reviewed_at}
Reviewed
{formatThemeDate(theme.reviewed_at)}
{/if} {#if theme.slug}
Slug
{theme.slug}
{/if}
{#if communityState.detailFiles.length > 0}

Files

{/if} {#if canEditCustomTheme(theme)}

Edit metadata

Replace files

Uploading new files resets review to pending.

{ communityState.replaceZipFile = (e.currentTarget as HTMLInputElement).files?.[0] ?? null; }} />
{:else if theme.status === "approved"}

Approved themes cannot be edited. Delete and re-submit if you need to publish an update.

{/if} {#if communityState.detailError}

{communityState.detailError}

{/if}
{#if communityState.showDeleteConfirm}
Delete permanently?
{:else} {/if}
{/if} {/if}