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