2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-09-07 10:00:28 +03:00
|
|
|
import { ChatSocialMessage } from './ChatSocialMessage';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Chat/Messages/Social-fediverse event',
|
|
|
|
component: ChatSocialMessage,
|
|
|
|
parameters: {},
|
|
|
|
} as ComponentMeta<typeof ChatSocialMessage>;
|
|
|
|
|
2022-05-12 09:31:31 +03:00
|
|
|
const Template: ComponentStory<typeof ChatSocialMessage> = args => <ChatSocialMessage {...args} />;
|
2022-04-28 09:19:20 +03:00
|
|
|
|
2022-10-06 08:43:24 +03:00
|
|
|
export const Follow = Template.bind({});
|
|
|
|
Follow.args = {
|
|
|
|
message: {
|
2023-02-06 06:58:24 +03:00
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_FOLLOW',
|
2022-10-06 08:43:24 +03:00
|
|
|
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: {
|
2023-02-06 06:58:24 +03:00
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_LIKE',
|
2022-10-06 08:43:24 +03:00
|
|
|
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: {
|
2023-02-06 06:58:24 +03:00
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
2022-10-06 08:43:24 +03:00
|
|
|
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',
|
|
|
|
},
|
|
|
|
};
|
2023-02-20 01:57:44 +03:00
|
|
|
|
|
|
|
export const LongAccountName = Template.bind({});
|
|
|
|
LongAccountName.args = {
|
|
|
|
message: {
|
|
|
|
type: 'FEDIVERSE_ENGAGEMENT_REPOST',
|
|
|
|
body: 'james shared this stream with their followers.',
|
|
|
|
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',
|
|
|
|
body: 'james shared this stream with their followers.',
|
|
|
|
title: 'james@mastodon.social',
|
|
|
|
image: 'https://xx.xx/avatars/original/missing.png',
|
|
|
|
link: 'https://mastodon.social/@james',
|
|
|
|
},
|
|
|
|
};
|