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

	const [running, mixed, passed, waiting, timedOut, cancelled] = pipelines;

	const { Story } = defineMeta({
		title: "Repo/Pipelines/PipelineCard",
		component: PipelineCard,
		tags: ["autodocs"],
		args: {
			ownerHandle: "tangled.org",
			repoName: "core",
			pipeline: passed
		}
	});
</script>

<Story name="Passed" />
<Story name="Running" args={{ pipeline: running }} />
<Story name="Mixed" args={{ pipeline: mixed }} />
<Story name="Timed out" args={{ pipeline: timedOut }} />
<Story name="Cancelled" args={{ pipeline: cancelled }} />
<Story name="Waiting for a spindle" args={{ pipeline: waiting }} />
<Story name="Plain" args={{ border: false, shadow: false, background: false }} />
