/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import {
  Title,
  Description,
  Primary,
  PRIMARY_STORY,
  ArgsTable,
} from '@storybook/addon-docs/blocks';
import MainProvider from '~context/MainProvider';
import getOperatorData from '../../../../../tests/factories/pages/operator.factory';
import TemplateOne from '.';

const pageData = getOperatorData();

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

const Template = (args) => (
  <MainProvider
    value={{
      bannerIsActive: false,
      cookieAccepted: true,
      translations: {
        online_casino: 'Online Casino',
      },
    }}
  >
    <TemplateOne {...args} />
  </MainProvider>
);
export const Default = Template.bind({});
Default.args = {};
