closeDrawer()}> {#if drawerContent?.mode === 'json'} {:else if drawerContent?.mode === 'plain'}
				{drawerContent?.content}
			
{:else if drawerContent?.mode === 'deno' || drawerContent?.mode === 'python3' || drawerContent?.mode === 'go' || drawerContent?.mode === 'bash'} {/if}
Logs/Result History Last save {#if selectedTab === 'logs'} {#if previewJob != undefined && 'result' in previewJob && previewJob.result != undefined}

						
{:else}
{previewIsLoading ? 'Waiting for result...' : 'Test to see the result here'}
{/if}
{/if} Id Created at Success Result Code Logs {#each pastPreviews as { id, created_at, success, result }} {id.substring(30)} {displayDate(created_at)} {#if success} {:else} {/if} { openDrawer({ mode: 'json', content: result, title: 'Result' }) }} > {JSON.stringify(result).substring(0, 30)}... { const code = ( await JobService.getCompletedJob({ workspace: $workspaceStore ?? 'NO_W', id }) ).raw_code openDrawer({ mode: lang, content: String(code), title: `Code ${lang}` }) }} > View code { const logs = ( await JobService.getCompletedJob({ workspace: $workspaceStore ?? 'NO_W', id }) ).logs openDrawer({ mode: 'plain', content: String(logs), title: `Code ${lang}` }) }} > View logs {/each} {#if lastSave}
Last local save for path {path}
{:else} No local save {/if}