2022-04-29 00:36:05 +03:00
|
|
|
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';
|
2022-04-29 00:36:05 +03:00
|
|
|
|
|
|
|
export default {
|
2022-05-13 03:59:40 +03:00
|
|
|
title: 'owncast/Layout/Header',
|
2022-04-29 00:36:05 +03:00
|
|
|
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>
|
|
|
|
);
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2022-05-26 21:08:37 +03:00
|
|
|
export const ChatAvailable = Template.bind({});
|
|
|
|
ChatAvailable.args = {
|
2022-04-29 00:36:05 +03:00
|
|
|
name: 'Example Stream Name',
|
2022-05-26 21:08:37 +03:00
|
|
|
chatAvailable: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const ChatNotAvailable = Template.bind({});
|
|
|
|
ChatNotAvailable.args = {
|
|
|
|
name: 'Example Stream Name',
|
|
|
|
chatAvailable: false,
|
2022-04-29 00:36:05 +03:00
|
|
|
};
|