Take control over your live stream video by running it yourself. Streaming + chat out of the box.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
925 B

import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { RecoilRoot } from 'recoil';
import UserDropdownMenu from '../components/UserDropdownMenu';
import { ChatState } from '../interfaces/application-state';
export default {
title: 'owncast/User settings menu',
component: UserDropdownMenu,
parameters: {},
} as ComponentMeta<typeof UserDropdownMenu>;
// This component uses Recoil internally so wrap it in a RecoilRoot.
const Example = args => (
<RecoilRoot>
<UserDropdownMenu {...args} />
</RecoilRoot>
);
const Template: ComponentStory<typeof UserDropdownMenu> = args => <Example {...args} />;
export const ChatEnabled = Template.bind({});
ChatEnabled.args = {
username: 'test-user',
chatState: ChatState.Available,
};
export const ChatDisabled = Template.bind({});
ChatDisabled.args = {
username: 'test-user',
chatState: ChatState.NotAvailable,
};