import React from 'react';
import { Meta, Story } from '@storybook/react';
import { MoleculeQuantityPick, IQuantityProps } from 'react/molecules/QuantityPick';

const meta: Meta = {
  title: 'React/molecules/QuantityPick',
  component: MoleculeQuantityPick,
  argTypes: {},
  parameters: {
    controls: { expanded: true },
  },
};

export default meta;

const TemplateQuantityPick: Story<IQuantityProps> = (props) => <MoleculeQuantityPick {...props} />;

// By passing using the Args format for exported stories, you can control the props for a component for reuse in a test
// https://storybook.js.org/docs/react/workflows/unit-testing
export const QuantityPick = TemplateQuantityPick.bind({});

QuantityPick.args = {
  value: '1',
  min: '0',
  max: '10'
};
