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: {
|
|
|
|
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',
|
|
|
|
},
|
|
|
|
};
|