2022-04-28 08:19:20 +02: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-28 08:19:20 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Chat/Messages/Social-fediverse event',
|
|
|
|
component: ChatSocialMessage,
|
|
|
|
parameters: {},
|
|
|
|
} as ComponentMeta<typeof ChatSocialMessage>;
|
|
|
|
|
2022-05-12 08:31:31 +02:00
|
|
|
const Template: ComponentStory<typeof ChatSocialMessage> = args => <ChatSocialMessage {...args} />;
|
2022-04-28 08:19:20 +02:00
|
|
|
|
2022-10-06 07:43:24 +02: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',
|
|
|
|
},
|
|
|
|
};
|