owncast/web/stories/Header.stories.tsx

29 lines
692 B
TypeScript
Raw Normal View History

import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
2022-05-08 10:39:26 +03:00
import { RecoilRoot } from 'recoil';
2022-05-13 03:59:40 +03:00
import Header from '../components/ui/Header/Header';
export default {
2022-05-13 03:59:40 +03:00
title: 'owncast/Layout/Header',
component: Header,
parameters: {},
} as ComponentMeta<typeof Header>;
2022-05-08 10:39:26 +03:00
const Template: ComponentStory<typeof Header> = args => (
<RecoilRoot>
<Header {...args} />
</RecoilRoot>
);
export const ChatAvailable = Template.bind({});
ChatAvailable.args = {
name: 'Example Stream Name',
chatAvailable: true,
};
export const ChatNotAvailable = Template.bind({});
ChatNotAvailable.args = {
name: 'Example Stream Name',
chatAvailable: false,
};