2023-11-07 06:35:05 +03:00
|
|
|
import { StoryFn, Meta } from '@storybook/react';
|
2022-05-08 10:39:26 +03:00
|
|
|
import { RecoilRoot } from 'recoil';
|
2022-09-07 10:00:28 +03:00
|
|
|
import { Header } from './Header';
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
const meta = {
|
2022-05-13 03:59:40 +03:00
|
|
|
title: 'owncast/Layout/Header',
|
2022-04-29 00:36:05 +03:00
|
|
|
component: Header,
|
2023-01-31 02:33:09 +03:00
|
|
|
parameters: {
|
|
|
|
chromatic: { diffThreshold: 0.75 },
|
|
|
|
},
|
2023-11-07 06:35:05 +03:00
|
|
|
} satisfies Meta<typeof Header>;
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export default meta;
|
|
|
|
|
|
|
|
const Template: StoryFn<typeof Header> = args => (
|
2022-05-08 10:39:26 +03:00
|
|
|
<RecoilRoot>
|
|
|
|
<Header {...args} />
|
|
|
|
</RecoilRoot>
|
|
|
|
);
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const ChatAvailable = {
|
|
|
|
render: Template,
|
|
|
|
|
|
|
|
args: {
|
|
|
|
name: 'Example Stream Name',
|
|
|
|
chatAvailable: true,
|
|
|
|
},
|
2022-05-26 21:08:37 +03:00
|
|
|
};
|
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const ChatNotAvailable = {
|
|
|
|
render: Template,
|
|
|
|
|
|
|
|
args: {
|
|
|
|
name: 'Example Stream Name',
|
|
|
|
chatAvailable: false,
|
|
|
|
},
|
2022-04-29 00:36:05 +03:00
|
|
|
};
|