{"size": 418, "ext": "js", "max_stars_repo_path": "src/client/components/notification/notification.stories.js", "max_stars_repo_name": "ricardoaguiar/Seasony-Dashboard", "max_stars_repo_stars_event_min_datetime": "2020-03-26T20:14:48.000Z", "max_stars_repo_stars_event_max_datetime": "2020-07-10T15:14:06.000Z", "max_issues_repo_path": "src/client/components/notification/notification.stories.js", "max_issues_repo_name": "ricardoaguiar/Seasony-Dashboard", "max_issues_repo_issues_event_min_datetime": "2020-03-22T12:23:06.000Z", "max_issues_repo_issues_event_max_datetime": "2020-06-15T13:48:19.000Z", "max_forks_repo_path": "src/client/components/notification/notification.stories.js", "max_forks_repo_name": "ricardoaguiar/Seasony-Dashboard", "max_forks_repo_forks_event_min_datetime": "2020-03-28T21:06:17.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-14T13:05:34.000Z"}
{"max_stars_count": 4, "max_issues_count": 144, "max_forks_count": 14, "avg_line_length": 23.2222222222, "max_line_length": 57, "alphanum_fraction": 0.6866028708}
import React from 'react';
import Notification from './notification.component';
import { withKnobs, text } from '@storybook/addon-knobs';

export default {
  title: 'Notification',
  component: Notification,
  decorators: [withKnobs],
};

export const Error = () => {
  const errorText = text(
    'Error text',
    'This is error message for wrong email address.',
  );
  return <Notification text={errorText} />;
};
