2023-11-07 06:35:05 +03:00
|
|
|
import { Meta } from '@storybook/react';
|
2023-09-10 20:58:11 +03:00
|
|
|
import { ChatPartMessage } from './ChatPartMessage';
|
|
|
|
import Mock from '../../../stories/assets/mocks/chatmessage-action.png';
|
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
const meta = {
|
2023-09-10 20:58:11 +03:00
|
|
|
title: 'owncast/Chat/Messages/Chat Part',
|
|
|
|
component: ChatPartMessage,
|
|
|
|
argTypes: {
|
|
|
|
userColor: {
|
|
|
|
options: ['0', '1', '2', '3', '4', '5', '6', '7'],
|
|
|
|
control: { type: 'select' },
|
|
|
|
},
|
|
|
|
},
|
|
|
|
parameters: {
|
|
|
|
design: {
|
|
|
|
type: 'image',
|
|
|
|
url: Mock,
|
|
|
|
},
|
|
|
|
docs: {
|
|
|
|
description: {
|
|
|
|
component: `This is shown when a chat participant parts.`,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2023-11-07 06:35:05 +03:00
|
|
|
} satisfies Meta<typeof ChatPartMessage>;
|
2023-09-10 20:58:11 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export default meta;
|
2023-09-10 20:58:11 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const Regular = {
|
|
|
|
args: {
|
|
|
|
displayName: 'RandomChatter',
|
|
|
|
isAuthorModerator: false,
|
|
|
|
userColor: 3,
|
|
|
|
},
|
2023-09-10 20:58:11 +03:00
|
|
|
};
|
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const Moderator = {
|
|
|
|
args: {
|
|
|
|
displayName: 'RandomChatter',
|
|
|
|
isAuthorModerator: true,
|
|
|
|
userColor: 2,
|
|
|
|
},
|
2023-09-10 20:58:11 +03:00
|
|
|
};
|