This repository has no description
1<script module lang="ts">
2 import { defineMeta } from "@storybook/addon-svelte-csf";
3 import MockAuthProvider from "$lib/components/testing/MockAuthProvider.svelte";
4 import TimelineFollowEvent from "./TimelineFollowEvent.svelte";
5 import type { FollowEvent } from "$lib/api/lexicons/types/sh/tangled/feed/getTimeline";
6
7 const event = {
8 $type: "sh.tangled.feed.getTimeline#followEvent",
9 cid: "bafyreib2",
10 uri: "at://did:plc:oky5czdrnfjpqslsw2a5iclo/sh.tangled.graph.follow/3l",
11 actor: { did: "did:plc:oky5czdrnfjpqslsw2a5iclo", handle: "alice.tngl.sh" },
12 subject: {
13 did: "did:plc:3p7ejjxnufohsygt5vbyxb2i",
14 handle: "joshka.net",
15 description: "Rust, TUIs, and the occasional git plumbing yak-shave.",
16 followersCount: 128,
17 followsCount: 87
18 }
19 } as unknown as FollowEvent;
20
21 const { Story } = defineMeta({
22 title: "Timeline/TimelineFollowEvent",
23 component: TimelineFollowEvent,
24 tags: ["autodocs"],
25 args: {
26 event,
27 eventAt: "2025-06-02T09:00:00Z"
28 }
29 });
30</script>
31
32<Story name="Default">
33 {#snippet template(args)}
34 <MockAuthProvider>
35 <TimelineFollowEvent {...args} />
36 </MockAuthProvider>
37 {/snippet}
38</Story>