/* 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 One',
  component: AuthorTemplateOne,
  argTypes: {
    label: {
      control: 'text',
      defaultValue: 'By',
    },
    authorName: {
      control: 'text',
      defaultValue: 'John Doe',
    },
    authorPath: {
      control: 'text',
      defaultValue: 'https://example.com',
    },
    showIconMobile: {
      control: 'boolean',
      defaultValue: true,
    },
    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({});
