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' || drawerContent?.mode === 'nativets'} {/if}
Logs & Result History {#if selectedTab === 'logs'} {#if previewJob != undefined && 'result' in previewJob}
{:else}
{#if previewIsLoading} {:else} Test to see the result here {/if}
{/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 ?? 'plain', 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}