import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import {
  Title,
  Description,
  Primary,
  PRIMARY_STORY,
  ArgsTable,
} from '@storybook/addon-docs/blocks';
import VerificationBadge from '.';

export default {
  title: 'Theme/Atoms/VerificationBadge/Template One',
  component: VerificationBadge,
  argTypes: {
    text: {
      name: 'text',
      description: 'Translation key for the badge text',
      defaultValue: 'verified_on',
      control: { type: 'text' },
    },
    extraClass: {
      name: 'extraClass',
      description: 'Additional CSS class',
      control: { type: 'text' },
    },
  },
  parameters: {
    docs: {
      description: {
        component: 'A badge that displays a verification status',
      },
      page: () => (
        <>
          <Title />
          <Description />
          <Primary />
          <ArgsTable story={PRIMARY_STORY} />
        </>
      ),
    },
  },
};

const Template = (args) => <VerificationBadge {...args} />;
export const Default = Template.bind({});
Default.args = {};
