<script module lang="ts">
	import { defineMeta } from "@storybook/addon-svelte-csf";
	import Logs from "$icon/logs";
	import PanelHeader from "./PanelHeader.svelte";

	const { Story } = defineMeta({
		title: "Repo/PanelHeader",
		component: PanelHeader,
		tags: ["autodocs"],
		args: { title: "Commits", href: "/dawn/tangled/commits/main", icon: Logs, count: 42 }
	});
</script>

<Story name="With count" />
<Story name="Approximate count" args={{ title: "Branches", count: 100, approximate: true }} />
<Story name="Without count" args={{ title: "Files", count: undefined }} />
