storybook/code/lib/cli/rendererAssets/preact/Header.stories.jsx
Tom Coleman 383d4ba861 Revert "Undo accidental push of tom/sb-557-typescript-2"
This reverts commit 1cfc7203af2dd81d9484d1a569c9fb4e31396ea0.
2022-10-12 13:20:38 +11:00

28 lines
603 B
JavaScript

import { Header } from './Header';
export default {
title: 'Example/Header',
component: Header,
parameters: {
// More on Story layout: https://storybook.js.org/docs/preact/configure/story-layout
layout: 'fullscreen',
},
argTypes: {
onLogin: { action: 'onLogin' },
onLogout: { action: 'onLogout' },
onCreateAccount: { action: 'onCreateAccount' },
},
};
const Template = (args) => <Header {...args} />;
export const LoggedIn = Template.bind({});
LoggedIn.args = {
user: {
name: 'Jane Doe',
},
};
export const LoggedOut = Template.bind({});
LoggedOut.args = {};