fbredius/storybook

View on GitHub
lib/cli/src/frameworks/preact/Header.stories.jsx

Summary

Maintainability
A
55 mins
Test Coverage
/** @jsx h */
import { h } from 'preact';
import { Header } from './Header';

export default {
  title: 'Example/Header',
  component: Header,
  argTypes: {
    onLogin: { action: 'onLogin' },
    onLogout: { action: 'onLogout' },
    onCreateAccount: { action: 'onCreateAccount' },
  },
};

const Template = (args) => <Header {...args} />;

export const LoggedIn = Template.bind({});
LoggedIn.args = {
  user: {},
};

export const LoggedOut = Template.bind({});
LoggedOut.args = {};