mirror of
https://github.com/owncast/owncast.git
synced 2024-12-29 20:48:35 +03:00
24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
|
import React from 'react';
|
||
|
import { ComponentStory, ComponentMeta } from '@storybook/react';
|
||
|
import { ChatNameChangeMessage } from './ChatNameChangeMessage';
|
||
|
|
||
|
export default {
|
||
|
title: 'owncast/Chat/Messages/Chat name change',
|
||
|
component: ChatNameChangeMessage,
|
||
|
} as ComponentMeta<typeof ChatNameChangeMessage>;
|
||
|
|
||
|
const Template: ComponentStory<typeof ChatNameChangeMessage> = args => (
|
||
|
<ChatNameChangeMessage {...args} />
|
||
|
);
|
||
|
|
||
|
export const Basic = Template.bind({});
|
||
|
Basic.args = {
|
||
|
message: {
|
||
|
oldName: 'JohnnyOldName',
|
||
|
user: {
|
||
|
displayName: 'JohnnyNewName',
|
||
|
displayColor: '3',
|
||
|
},
|
||
|
},
|
||
|
};
|