<script module lang="ts">
	import { defineMeta } from "@storybook/addon-svelte-csf";
	import RepoTabs from "./RepoTabs.svelte";
	import type { RepoInfo } from "./types";

	const repo: RepoInfo = {
		uri: "at://did:plc:repo/sh.tangled.repo.repo/3jzrepo",
		rkey: "3jzrepo",
		name: "tangled",
		ownerDid: "did:plc:owner",
		ownerHandle: "dawn",
		knot: "knot1.tangled.sh",
		defaultBranch: "main"
	};

	const { Story } = defineMeta({
		title: "Repo/RepoTabs",
		component: RepoTabs,
		tags: ["autodocs"],
		args: {
			repo,
			counts: { stars: 128, issues: 7, pulls: 3, forks: 12 },
			active: "overview"
		}
	});
</script>

<Story name="Overview" />
<Story name="Issues" args={{ active: "issues" }} />
<Story name="Pulls" args={{ active: "pulls" }} />
<Story name="Pipelines" args={{ active: "pipelines" }} />
