import React from 'react';
import TemplateTwo from '.';
import getPaymentData from '../../../../../../../tests/factories/pages/payment.factory';
import checkMark from '../../../../../../../storybook-images/verify.svg';

const pagePayment = getPaymentData();

export default {
  title: 'Theme/Layout/Header/Payment/Template Two',
  component: TemplateTwo,
  argTypes: {
    type: {
      name: 'Type',
      type: { name: 'String' },
      defaultValue: pagePayment?.type,
    },
    sections: {
      name: 'Sections',
      defaultValue: pagePayment?.sections,
    },
    image: {
      name: 'Image',
      type: { name: 'img' },
      defaultValue: pagePayment?.standardised_logo_filename_object,
    },
    name: {
      name: 'Operator Name',
      type: { name: 'String' },
      defaultValue: pagePayment?.name,
    },
    numOfStars: {
      name: 'Number of Stars',
      type: { name: 'number' },
      defaultValue: pagePayment?.numOfStars,
    },
    relation: {
      name: 'Relation',
      type: { name: 'object' },
      defaultValue: pagePayment?.relation,
    },
    description: {
      name: 'Description',
      type: { name: 'String' },
      defaultValue: pagePayment?.description,
    },
    icon: {
      name: 'Icon',
      defaultValue: checkMark,
    },
  },
};

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

export const Default = Template.bind({});

Default.args = {};
