import {createNewsletterTeaser} from "./NewsletterTeaserComponent";

export default {
  title: 'Components/Newsletter Teaser',
  parameters: {
    layout: 'padded',
  },
  argTypes: {
    title: {
      name: 'Überschrift',
      control: 'text',
      defaultValue: 'IHK Musterstadt Corona-Newsletter',
    },
    introduction: {
      name: 'Einleitungstext',
      control: 'text',
      defaultValue: 'Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.',
    }
  }
}

const Template = ({...args}) => {
  return createNewsletterTeaser({...args});
};

export const NewsletterTeaser = Template.bind({});
NewsletterTeaser.args = {};