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

	const { Story } = defineMeta({
		title: "Repo/Issues/IssueInfoBar",
		component: IssueInfoBar,
		tags: ["autodocs"],
		argTypes: {
			state: {
				control: { type: "inline-radio" },
				options: ["open", "closed"]
			},
			authorHandle: { control: "text" },
			authorDid: { control: "text" },
			createdAt: { control: "text" }
		},
		args: {
			state: "open",
			authorHandle: "joshka.net",
			authorDid: "did:plc:3p7ejjxnufohsygt5vbyxb2i",
			createdAt: "2025-06-01T10:30:00Z"
		}
	});
</script>

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