2022-04-27 23:19:20 -07:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-09-07 09:00:28 +02:00
|
|
|
import { ChatSocialMessage } from './ChatSocialMessage';
|
2022-04-27 23:19:20 -07:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Chat/Messages/Social-fediverse event',
|
|
|
|
component: ChatSocialMessage,
|
|
|
|
parameters: {},
|
|
|
|
} as ComponentMeta<typeof ChatSocialMessage>;
|
|
|
|
|
2022-05-11 23:31:31 -07:00
|
|
|
const Template: ComponentStory<typeof ChatSocialMessage> = args => <ChatSocialMessage {...args} />;
|
2022-04-27 23:19:20 -07:00
|
|
|
|
2022-10-05 22:43:24 -07:00
|
|
|
export const Follow = Template.bind({});
|
|
|
|
Follow.args = {
|
|
|
|
message: {
|
2023-02-05 19:58:24 -08:00
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_FOLLOW',
|
2023-02-19 15:29:40 -08:00
|
|
|
body: '<p>james followed this live stream.</p>',
|
2022-10-05 22:43:24 -07:00
|
|
|
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: {
|
2023-02-05 19:58:24 -08:00
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_LIKE',
|
2023-02-19 15:29:40 -08:00
|
|
|
body: '<p>james liked that this stream went live.</p>',
|
2022-10-05 22:43:24 -07:00
|
|
|
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: {
|
2023-02-05 19:58:24 -08:00
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
2023-02-19 15:29:40 -08:00
|
|
|
body: '<p>james shared this stream with their followers.</p>',
|
2022-10-05 22:43:24 -07:00
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://mastodon.social/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
|
|
|
};
|
2023-02-19 14:57:44 -08:00
|
|
|
|
|
|
|
export const LongAccountName = Template.bind({});
|
|
|
|
LongAccountName.args = {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
2023-02-19 15:29:40 -08:00
|
|
|
body: '<p>james shared this stream with their followers.</p>',
|
2023-02-19 14:57:44 -08:00
|
|
|
title: 'littlejimmywilliams@technology.biz.net.org.technology.gov',
|
|
|
|
image: 'https://mastodon.social/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const InvalidAvatarImage = Template.bind({});
|
|
|
|
InvalidAvatarImage.args = {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
2023-02-19 15:29:40 -08:00
|
|
|
body: '<p>james shared this stream with their followers.</p>',
|
2023-02-19 14:57:44 -08:00
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://xx.xx/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
|
|
|
};
|