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

const pageData = getOperatorData();

pageData.relation.extra_fields = {
  terms_and_conditions:
    '18+ – Lorem ipsum dolor sit amet, consectetur adipiscing elit. Tellus proin nunc, nunc est nec mattis augue gravida volutpat.',
  terms_and_conditions_text_enabled: '1',
};

export default {
  title: 'Theme/Modules/Template Blocks/Operator review page/Review Summary/Template Three',
  component: TemplateThree,
  argTypes: {
    page: {
      name: 'Page Object',
      type: { name: 'Object' },
      defaultValue: pageData,
    },
    verify: {
      defaultValue: <VerifiedAuthor />,
    },
  },
  parameters: {
    docs: {
      description: {
        component: 'Operator Review Header - Template Two',
      },
      page: () => (
        <>
          <Title />
          <Description />
          <Primary />
          <ArgsTable story={PRIMARY_STORY} />
        </>
      ),
    },
  },
};

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