2023-11-07 06:35:05 +03:00
|
|
|
import { StoryFn, Meta } from '@storybook/react';
|
2023-05-18 22:13:26 +03:00
|
|
|
import { RecoilRoot } from 'recoil';
|
2022-09-07 10:00:28 +03:00
|
|
|
import { Footer } from './Footer';
|
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/Footer',
|
2022-04-29 00:36:05 +03:00
|
|
|
component: Footer,
|
|
|
|
parameters: {},
|
2023-11-07 06:35:05 +03:00
|
|
|
} satisfies Meta<typeof Footer>;
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export default meta;
|
|
|
|
|
|
|
|
const Template: StoryFn<typeof Footer> = args => (
|
2023-05-18 22:13:26 +03:00
|
|
|
<RecoilRoot>
|
|
|
|
<Footer {...args} />
|
|
|
|
</RecoilRoot>
|
|
|
|
);
|
2022-04-29 00:36:05 +03:00
|
|
|
|
2023-11-07 06:35:05 +03:00
|
|
|
export const Example = {
|
|
|
|
render: Template,
|
|
|
|
|
|
|
|
args: {
|
|
|
|
version: 'v1.2.3',
|
|
|
|
},
|
2022-04-29 00:36:05 +03:00
|
|
|
};
|