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.
29 lines
778 B
29 lines
778 B
import React from 'react'; |
|
import { ComponentStory, ComponentMeta } from '@storybook/react'; |
|
import { RecoilRoot } from 'recoil'; |
|
import { UserDropdown } from '../components/common'; |
|
|
|
export default { |
|
title: 'owncast/Components/User settings menu', |
|
component: UserDropdown, |
|
parameters: {}, |
|
} as ComponentMeta<typeof UserDropdown>; |
|
|
|
// This component uses Recoil internally so wrap it in a RecoilRoot. |
|
const Example = args => ( |
|
<RecoilRoot> |
|
<UserDropdown {...args} /> |
|
</RecoilRoot> |
|
); |
|
|
|
const Template: ComponentStory<typeof UserDropdown> = args => <Example {...args} />; |
|
|
|
export const ChatEnabled = Template.bind({}); |
|
ChatEnabled.args = { |
|
username: 'test-user', |
|
}; |
|
|
|
export const ChatDisabled = Template.bind({}); |
|
ChatDisabled.args = { |
|
username: 'test-user', |
|
};
|
|
|