/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { storiesOf } from '@storybook/react';
import GenericForm from './index';

storiesOf('admin/forms/GenericForm', module).add('GenericForm component', () => (
  <GenericForm
    handleSubmit={() => {}}
    deleteItem={() => {}}
    history={() => {}}
    push={() => {}}
    initialValues={{}}
    legend="Status article"
    fields={{ id: { type: 'string', label: 'yes' } }}
  />
));
