import { h } from 'preact';
import { withKnobs, object, text, boolean } from '@storybook/addon-knobs/react';
import { action } from '@storybook/addon-actions';
import { Article } from '..';
import {
article,
articleWithOrganization,
articleWithSnippetResult,
articleWithReadingTimeGreaterThan1,
articleWithReactions,
articleWithComments,
assetPath,
} from '../__tests__/utilities/articleUtilities';
import { articleDecorator } from './articleDecorator';
import '../../../assets/stylesheets/articles.scss';
const ICONS = {
REACTIONS_ICON: assetPath('reactions-stack.png'),
COMMENTS_ICON: assetPath('comments-bubble.png'),
VIDEO_ICON: assetPath('video-camera.svg'),
};
const commonProps = {
bookmarkClick: action('Saved/unsaved article'),
};
export default {
title: 'App Components/Article/Standard',
component: Article,
decorators: [withKnobs, articleDecorator],
};
export const DefaultArticle = () => (
);
DefaultArticle.story = {
name: 'default',
};
export const WithOrganization = () => (
);
WithOrganization.story = {
name: 'with organization',
};
export const WithFlareTag = () => (
);
WithFlareTag.story = {
name: 'with flare tag',
};
export const WithSnippetResult = () => (
);
WithSnippetResult.story = {
name: 'with snippet result',
};
export const WithReadingTime = () => (
);
WithReadingTime.story = {
name: 'with reading time',
};
export const WithReactions = () => (
);
WithReactions.story = {
name: 'with reactions',
};
export const WithComments = () => (
);
WithComments.story = {
name: 'with comments',
};
export const OnReadingList = () => (
);
OnReadingList.story = {
name: 'on reading list',
};