import React from 'react'; import { ComponentStory, ComponentMeta } from '@storybook/react'; import { ChatUserBadge } from './ChatUserBadge'; import { ModerationBadge } from './ModerationBadge'; import { AuthedUserBadge } from './AuthedUserBadge'; export default { title: 'owncast/Chat/Messages/User Flag', component: ChatUserBadge, argTypes: { userColor: { options: ['0', '1', '2', '3', '4', '5', '6', '7'], control: { type: 'select' }, }, }, } as ComponentMeta; const Template: ComponentStory = args => ; const ModerationTemplate: ComponentStory = args => ( ); const AuthedTemplate: ComponentStory = args => ( ); export const Authenticated = AuthedTemplate.bind({}); Authenticated.args = { userColor: '3', }; export const Moderator = ModerationTemplate.bind({}); Moderator.args = { userColor: '5', }; export const Generic = Template.bind({}); Generic.args = { badge: '?', userColor: '6', };