/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import {
  Title,
  Description,
  Primary,
  ArgsTable,
  PRIMARY_STORY,
} from '@storybook/addon-docs/blocks';
import { sampleOperatorCards } from '../../../../../tests/factories/modules/matrix/card.factory';
import TemplateThree from '../../../../gatsby-core-theme/components/molecules/module';

const operatorData = sampleOperatorCards;

export default {
  title: 'Theme/Modules/Cards/Layout/Template Three',
  component: TemplateThree,
  argTypes: {
    module: {
      control: 'object',
    },
  },
  args: {
    module: {
      ...operatorData,
      style: 'template_three',
    },
    removeModuleIntroduction: false,
  },
  parameters: {
    docs: {
      description: {
        component: 'A Cards Layout Component - Template Two',
      },
      page: () => (
        <>
          <Title />
          <Description />
          <Primary />
          <ArgsTable story={PRIMARY_STORY} />
        </>
      ),
    },
  },
};

const Template = (args) => <TemplateThree {...args} templateThree />;
export const VariantOne = Template.bind({});
VariantOne.args = {
  pageContext: {
    page: {},
  },
};