Something went wrong. Try again.
Monorepo for Tangled tangled.org
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637<script lang="ts"> import type { RepoAccess } from "#lib/api/access.ts"; import type { RepoCounts, RepoInfo, RepoSource } from "#lib/components/repo/types.ts"; import RepoHeader from "#lib/components/repo/RepoHeader.svelte"; import RepoTabs from "#lib/components/repo/RepoTabs.svelte";
interface Props { // awaited here, below the layout's boundary, so the navigation is never held repo: RepoInfo | Promise<RepoInfo>; counts: Promise<RepoCounts> | RepoCounts; viewerStarRkey: Promise<string | null> | string | null; viewerSubscriptionRkey: Promise<string | null> | string | null; source: Promise<RepoSource | null> | RepoSource | null; access: RepoAccess | Promise<RepoAccess>; activeTab: string; showTabs?: boolean; }
let { repo: repoField, counts, viewerStarRkey, viewerSubscriptionRkey, source, access, activeTab, showTabs = true }: Props = $props();
const repo = $derived(await repoField);</script>
<RepoHeader {repo} {counts} {viewerStarRkey} {viewerSubscriptionRkey} {source} />{#if showTabs} <RepoTabs {repo} {counts} {access} active={activeTab} />{/if}