2022-04-28 09:19:20 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
|
|
|
import ChatSystemMessage from '../components/chat/ChatSystemMessage';
|
2022-05-13 06:52:19 +03:00
|
|
|
import Mock from './assets/mocks/chatmessage-system.png';
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'owncast/Chat/Messages/System',
|
|
|
|
component: ChatSystemMessage,
|
2022-05-13 06:52:19 +03:00
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: Mock,
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
description: {
|
|
|
|
component: `This is the message design used when the server sends a message to chat.`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-04-28 09:19:20 +03:00
|
|
|
} as ComponentMeta<typeof ChatSystemMessage>;
|
|
|
|
|
2022-05-12 09:31:31 +03:00
|
|
|
const Template: ComponentStory<typeof ChatSystemMessage> = args => <ChatSystemMessage {...args} />;
|
2022-04-28 09:19:20 +03:00
|
|
|
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
|
|
export const Basic = Template.bind({});
|