Page.stories.tsx 605 B

1234567891011121314151617181920212223
  1. import React from 'react';
  2. // also exported from '@storybook/react' if you can deal with breaking changes in 6.1
  3. import { Story, Meta } from '@storybook/react/types-6-0';
  4. import { Page, PageProps } from './Page';
  5. import * as HeaderStories from './Header.stories';
  6. export default {
  7. title: 'Example/Page',
  8. component: Page,
  9. } as Meta;
  10. const Template: Story<PageProps> = (args) => <Page {...args} />;
  11. export const LoggedIn = Template.bind({});
  12. LoggedIn.args = {
  13. ...HeaderStories.LoggedIn.args,
  14. };
  15. export const LoggedOut = Template.bind({});
  16. LoggedOut.args = {
  17. ...HeaderStories.LoggedOut.args,
  18. };