/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import {
  Title,
  Description,
  Primary,
  PRIMARY_STORY,
  ArgsTable,
} from '@storybook/addon-docs/blocks';
import data from '../../../../tests/factories/lotto/lotto-uk-49';

import LottoUK49 from '.';

export default {
  title: 'Theme/Modules/Template Blocks/Lotto/Lotto UK 49',
  component: LottoUK49,
  argTypes: {
    serverData: {
      control: 'array',
      description: 'Data for the LottoUK49 component',
      defaultValue: data,
    },
  },
  parameters: {
    docs: {
      description: {
        component: 'Lotto UK 49',
      },
      page: () => (
        <>
          <Title />
          <Description />
          <Primary />
          <ArgsTable story={PRIMARY_STORY} />
        </>
      ),
    },
  },
};

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

export const Default = Template.bind({});
Default.args = {
  serverData: data,
};
