{question?.title ?? "Loading..."} — Notebook
{#if loading}

Loading

{:else if question}

{#if unit}{unit.code}{/if}{#if unit && topic} · {/if}{#if topic}{topic.name}{/if} {#if question.solved} · Solved{/if}

{question.title}

{question.authorName} · {timeAgo(question.createdAt)} {#if isAuthor && !question.solved} · {/if}

{question.content}

Answers ({answers.length})

{#if get(isAuthenticated)}
{answerError}
{:else}

Sign in to answer.

{/if}
{#each answers as answer}

{answer.authorName} · {timeAgo(answer.createdAt)}

{answer.content}

{#if get(currentUser)?._id === answer.authorId} {/if}
{:else}

No answers yet.

{/each}
{:else}

Question not found

This question may have been deleted or doesn't exist.

Back to questions {/if}