mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
25 lines
564 B
JavaScript
25 lines
564 B
JavaScript
import m from 'mithril';
|
|
|
|
import { Page } from './Page';
|
|
import * as HeaderStories from './Header.stories';
|
|
|
|
export default {
|
|
title: 'Example/Page',
|
|
component: Page,
|
|
};
|
|
|
|
const Template = ({ label, ...args }) => ({
|
|
view: () => m(Page, args, label),
|
|
});
|
|
|
|
export const LoggedIn = Template.bind({});
|
|
LoggedIn.args = {
|
|
// More on composing args: https://storybook.js.org/docs/mithril/writing-stories/args#args-composition
|
|
...HeaderStories.LoggedIn.args,
|
|
};
|
|
|
|
export const LoggedOut = Template.bind({});
|
|
LoggedOut.args = {
|
|
...HeaderStories.LoggedOut.args,
|
|
};
|