import {createEventsSection} from "./EventsComponent";
import {EventsData} from "./EventsData";

export default {
  title: 'Sections/Events',
  parameters: {
    layout: 'fullscreen',
  },
  args: {
    headline: 'Aktuelle Veranstaltungen',
    updateText: 'Updates zu dieser Liste per Mail abonnieren',
    allButtonLabel: 'Alle anzeigen',
    showItems: 5,
    scrollItems: 5,
    events: EventsData,
  }
}

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

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