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