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

	const { Story } = defineMeta({
		title: "Repo/Issues/IssueToolbar",
		component: IssueToolbar,
		tags: ["autodocs"],
		argTypes: {
			state: {
				control: { type: "inline-radio" },
				options: ["open", "closed"]
			},
			openCount: { control: "number" },
			closedCount: { control: "number" }
		},
		args: {
			ownerHandle: "tangled.org",
			repoName: "core",
			state: "open",
			openCount: 285,
			closedCount: 128
		}
	});
</script>

<Story name="Open" />
<Story name="Closed" args={{ state: "closed" }} />
