2022-04-28 08:19:20 +02:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
2022-09-03 20:38:52 +02:00
|
|
|
import ChatActionMessage from './ChatActionMessage';
|
|
|
|
import Mock from '../../../stories/assets/mocks/chatmessage-action.png';
|
2022-04-28 08:19:20 +02:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Chat/Messages/Chat action',
|
|
|
|
component: ChatActionMessage,
|
2022-05-13 05:52:19 +02:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: Mock,
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
description: {
|
|
|
|
component: `This is the message design an action takes place, such as a join or a name change.`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-04-28 08:19:20 +02:00
|
|
|
} as ComponentMeta<typeof ChatActionMessage>;
|
|
|
|
|
2022-05-12 08:31:31 +02:00
|
|
|
const Template: ComponentStory<typeof ChatActionMessage> = args => <ChatActionMessage {...args} />;
|
2022-04-28 08:19:20 +02:00
|
|
|
|
|
|
|
export const Basic = Template.bind({});
|
2022-07-15 05:09:40 +02:00
|
|
|
Basic.args = {
|
|
|
|
body: 'This is a basic action message.',
|
|
|
|
};
|