/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import {
  Title,
  Description,
  Primary,
  ArgsTable,
  PRIMARY_STORY,
} from '@storybook/addon-docs/blocks';
import VerifiedAuthor from '../../../../images/icons/verified-author';
import AuthorTemplateOne from '.';

export default {
  title: 'Theme/Atoms/Author/Template Two',
  component: AuthorTemplateOne,
  argTypes: {
    authorName: {
      control: 'text',
      defaultValue: 'John Doe',
    },
    authorPath: {
      control: 'text',
      defaultValue: 'https://example.com',
    },
    authorImage: {
      control: 'text',
      defaultValue: '1675685947/ellipse-1.png',
    },

    verify: {
      control: 'element',
      defaultValue: <VerifiedAuthor />,
    },
  },
  parameters: {
    docs: {
      description: {
        component: 'AuthorTemplateOne component',
      },
      page: () => (
        <>
          <Title />
          <Description />
          <Primary />
          <ArgsTable story={PRIMARY_STORY} />
        </>
      ),
    },
  },
};

const Template = (args) => <AuthorTemplateOne {...args} />;

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