import React from 'react';
import { Meta, Story } from '@storybook/react';
import {IReadReferralProps, OrganismReadReferralCode} from 'react/organisms/ReadReferralCode';
import { action } from '@storybook/addon-actions';

const meta: Meta = {
  title: 'React/organisms/ReadReferralCode',
  component: OrganismReadReferralCode,
  argTypes: {
    handleClick: {table: {disable: true}},
    skipFunction: {table: {disable: true}},
  },
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateReadReferralCode: Story<IReadReferralProps> = (props) => <div style={{width: '310px'}}><OrganismReadReferralCode {...props} /></div>;

export const ReadReferralCode = TemplateReadReferralCode.bind({});

ReadReferralCode.args = {
  handleClick: action('handleClick'),
  skipFunction: action('skipFunction'),
};
