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

	const { Story } = defineMeta({
		title: "UI/Pagination",
		component: Pagination,
		tags: ["autodocs"],
		argTypes: {
			page: { control: { type: "number" } },
			total: { control: { type: "number" } },
			labels: { control: { type: "boolean" } },
			disabled: { control: { type: "boolean" } }
		},
		args: {
			page: 1,
			total: 10
		}
	});
</script>

<Story name="FirstPage" args={{ page: 1, total: 10 }} />
<Story name="MiddlePage" args={{ page: 5, total: 10 }} />
<Story name="LastPage" args={{ page: 10, total: 10 }} />
<Story name="FewPages" args={{ page: 2, total: 3 }} />
<Story name="SinglePage" args={{ page: 1, total: 1 }} />
<Story name="ManyPages" args={{ page: 12, total: 40 }} />
<Story name="WithLabels" args={{ page: 5, total: 10, labels: true }} />
<Story name="Disabled" args={{ page: 5, total: 10, disabled: true }} />
