import { Meta, StoryObj } from '@storybook/nextjs-vite'
import { EventExcerpt, EventExcerptRow } from './EventExcerpt'
import { TextDiv } from '@/components/Text/TextDiv'

const meta: Meta<typeof EventExcerpt> = {
  component: EventExcerpt,
}

type Story = StoryObj<typeof EventExcerpt>;
export default meta

export const Default: Story = {
  args: {
    children: <>
      <EventExcerptRow label={"What: "}>
        <TextDiv text={"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum."}/>
      </EventExcerptRow>
      <EventExcerptRow label={"Where:"}>
        <p>
          St. Richard<br/>
          Braunschweiger Str. 18, 12055 Berlin<br/>
          Anfahrt über S-Sonnenallee oder Mareschtraße
        </p>
      </EventExcerptRow>
    </>
  },
}