{#if mode == 'script'}
{currentScript?.path ?? 'Not editing a script'} {currentScript?.language ?? ''}{currentScript?.isCodebase ? ' (codebase)' : ''}
{#if $userStore != undefined} As {$userStore?.username} in {$workspaceStore} {:else} Unable to login {/if}
{#if !validCode}
Invalid code
{/if}
{#if testIsLoading} {:else} {/if}
{:else}
{#if $userStore} As {$userStore?.username} in {$workspaceStore} {:else} Unable to login on {$workspaceStore} {/if}
{#if $flowStore?.value?.modules} {:else}
Missing flow modules
{/if}
{#key reload} {/key}
{/if}