/* eslint-disable react/destructuring-assignment */
import React from 'react';
import getAuthorList from '../../../../../../tests/factories/authors/author.factory';
import TemplateTwo from '.';

const author = getAuthorList({})[1];

export default {
  title: 'Theme/Modules/Cards/Author/Template Two',
  component: TemplateTwo,
  argTypes: {
    item: {
      relation: {
        ...author,
      },
    },
  },
};

const Template = (args) => (
  <div
    style={{
      maxWidth: ' 34.3rem',
      margin: '0 auto',
    }}
  >
    <TemplateTwo {...args} />
  </div>
);

export const Default = Template.bind({});

Default.args = {
  item: {
    relation: {
      ...author,
    },
  },
};
