owncast/web/stories/ChatActionMessage.stories.tsx

28 lines
811 B
TypeScript
Raw Normal View History

import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import ChatActionMessage from '../components/chat/ChatAction/ChatActionMessage';
import Mock from './assets/mocks/chatmessage-action.png';
export default {
title: 'owncast/Chat/Messages/Chat action',
component: ChatActionMessage,
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.`,
},
},
},
} as ComponentMeta<typeof ChatActionMessage>;
2022-05-12 08:31:31 +02:00
const Template: ComponentStory<typeof ChatActionMessage> = args => <ChatActionMessage {...args} />;
export const Basic = Template.bind({});
Basic.args = {
body: 'This is a basic action message.',
};