owncast/web/components/ui/Header/Header.stories.tsx
2023-01-30 15:33:16 -08:00

30 lines
717 B
TypeScript

import React from 'react';
import { ComponentStory, ComponentMeta } from '@storybook/react';
import { RecoilRoot } from 'recoil';
import { Header } from './Header';
export default {
title: 'owncast/Layout/Header',
component: Header,
parameters: {
chromatic: { diffThreshold: 0.75 },
},
} as ComponentMeta<typeof Header>;
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,
};