This repository has no description
1<script module lang="ts">
2 import { defineMeta } from "@storybook/addon-svelte-csf";
3 import Comment from "./Comment.svelte";
4 import { sampleComments } from "./sampleComments";
5
6 const { byjp, samuel } = sampleComments;
7
8 const { Story } = defineMeta({
9 title: "Comment/Comment",
10 component: Comment,
11 tags: ["autodocs"],
12 argTypes: {
13 variant: { control: "inline-radio", options: ["top", "reply"] }
14 },
15 args: {
16 authorHandle: byjp.authorHandle,
17 authorDid: byjp.authorDid,
18 createdAt: byjp.createdAt,
19 body: byjp.body,
20 bodyHtml: byjp.bodyHtml,
21 subjectUri: byjp.uri,
22 variant: "top"
23 }
24 });
25</script>
26
27<Story name="Top level" />
28<Story
29 name="Reply"
30 args={{
31 variant: "reply",
32 authorHandle: samuel.authorHandle,
33 authorDid: samuel.authorDid,
34 createdAt: samuel.createdAt,
35 body: samuel.body,
36 bodyHtml: samuel.bodyHtml
37 }}
38/>