import React from 'react';
import { storiesOf } from '@storybook/react';
import { linkTo, hrefTo } from '@storybook/addon-links';
import LinkTo from '@storybook/addon-links/react';
import { action } from '@storybook/addon-actions';
storiesOf('Addons|Links.Link', module)
.add('First', () => Go to Second)
.add('Second', () => Go to First);
storiesOf('Addons|Links.Button', module)
.add('First', () => (
))
.add('Second', () => (
));
storiesOf('Addons|Links.Select', module)
.add('Index', () => (
))
.add('First', () => Go back)
.add('Second', () => Go back)
.add('Third', () => Go back);
storiesOf('Addons|Links.Href', module).add('log', () => {
hrefTo('Addons|Links.Href', 'log').then(href => action('URL of this story')({ href }));
return See action logger;
});