Add bot user badge. Closes #2681

This commit is contained in:
Gabe Kangas
2023-02-05 15:37:16 -08:00
parent 84ddf0dcfe
commit 1ee71aecaa
5 changed files with 55 additions and 1 deletions

View File

@@ -3,6 +3,7 @@ import { ComponentStory, ComponentMeta } from '@storybook/react';
import { ChatUserBadge } from './ChatUserBadge';
import { ModerationBadge } from './ModerationBadge';
import { AuthedUserBadge } from './AuthedUserBadge';
import { BotUserBadge } from './BotUserBadge';
export default {
title: 'owncast/Chat/Messages/User Flag',
@@ -24,6 +25,8 @@ const AuthedTemplate: ComponentStory<typeof ModerationBadge> = args => (
<AuthedUserBadge {...args} />
);
const BotTemplate: ComponentStory<typeof BotUserBadge> = args => <BotUserBadge {...args} />;
export const Authenticated = AuthedTemplate.bind({});
Authenticated.args = {
userColor: '3',
@@ -34,6 +37,11 @@ Moderator.args = {
userColor: '5',
};
export const Bot = BotTemplate.bind({});
Bot.args = {
userColor: '7',
};
export const Generic = Template.bind({});
Generic.args = {
badge: '?',