First pass at the social/federated chat component. Closes #2172

This commit is contained in:
Gabe Kangas
2022-10-05 22:43:24 -07:00
parent 11ceebd84f
commit 19e4e99127
7 changed files with 142 additions and 9 deletions

View File

@@ -8,8 +8,37 @@ export default {
parameters: {},
} as ComponentMeta<typeof ChatSocialMessage>;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const Template: ComponentStory<typeof ChatSocialMessage> = args => <ChatSocialMessage {...args} />;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const Basic = Template.bind({});
export const Follow = Template.bind({});
Follow.args = {
message: {
type: 'follow',
body: 'james followed this live stream.',
title: 'james@mastodon.social',
image: 'https://mastodon.social/avatars/original/missing.png',
link: 'https://mastodon.social/@james',
},
};
export const Like = Template.bind({});
Like.args = {
message: {
type: 'like',
body: 'james liked that this stream went live.',
title: 'james@mastodon.social',
image: 'https://mastodon.social/avatars/original/missing.png',
link: 'https://mastodon.social/@james',
},
};
export const Repost = Template.bind({});
Repost.args = {
message: {
type: 'repost',
body: 'james shared this stream with their followers.',
title: 'james@mastodon.social',
image: 'https://mastodon.social/avatars/original/missing.png',
link: 'https://mastodon.social/@james',
},
};