import * as UI from '../../src/index'

import { Canvas, Meta, Story } from "@storybook/addon-docs";

<Meta title="Header" />

## Header

<div id="PageHeader" />

export const headerDecorator = (Story) => {
  setTimeout(() => Story(), 1);
  return '<div>The above <code>div<code> with ID "PageHeader" is replaced by the header component</div>';
};

To experience the full behaviour of the header, you need to log in. This can be done at
[the example page](http://solidos.github.io/solid-ui/examples/header).

<Canvas>
  <Story name="header" decorators={[headerDecorator]}>
    {() => {
      const options = {};
      UI.initHeader(SolidLogic.store, options);
    }}
  </Story>
</Canvas>
