import { Meta, StoryFn } from '@storybook/react-webpack5';

import { AddButton } from './AddButton';

export default {
  component: AddButton,
  title: 'Components/Buttons/AddButton',
} as Meta;

type Args = {
  label: string;
};

function Template({ label }: Args) {
  return <AddButton data-cy="add-">{label}</AddButton>;
}

export const Primary: StoryFn<Args> = Template.bind({});
Primary.args = {
  label: 'Create new container',
};
