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

	const { Story } = defineMeta({
		title: "Repo/RefSelector",
		component: RefSelector,
		tags: ["autodocs"],
		args: {
			ownerHandle: "dawn",
			repoName: "tangled",
			current: "main",
			branches: ["main", "feature/storybook"],
			tags: ["v1.0.0", "v0.9.0"]
		}
	});
</script>

<Story name="Branch selected" />
<Story name="Tag selected" args={{ current: "v1.0.0" }} />
<Story name="Detached commit ref" args={{ current: "0123456789abcdef" }} />
<Story name="Repository has no tags" args={{ tags: [] }} />
