{profile?.name ?? "Profile"} — Notebook
{#if loading}

Loading

{:else if profile}

Contributor

{profile.name}

Member since {new Date(profile._creationTime).toLocaleDateString(undefined, { month: "long", year: "numeric", })}

{profile.totalContributions}

Contributions

{profile.noteCount}

Notes

{profile.questionCount}

Questions

{profile.commentCount}

Comments

{#if tab === "posts"} {#if profile.posts.length === 0}

No posts yet.

{:else} {#each profile.posts as post}

{post.type}

{post.title}

{timeAgo(post.createdAt)} · {post.voteCount} vote{post.voteCount === 1 ? "" : "s"}

{/each} {/if} {:else if profile.comments.length === 0}

No comments yet.

{:else} {#each profile.comments as comment} {/each} {/if}
{:else}

Profile not found

This user does not exist.

{/if}