import { Meta, StoryObj } from '@storybook/nextjs-vite'
import portrait from "./portrait.jpeg"
import { ContactPerson2 } from './ContactPerson2'

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

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

export const Default: Story = {
  args: {
    contact: {
      id: "some_id",
      name: "Pfr. M. Mustermann",
      email: "m.mustermann@gmail.com",
      telephone: "+491234567890",
      createdAt: "2021-03-01T00:00:00.000Z",
      updatedAt: ""
    }
  },
}

export const NotFound: Story = {
  args: {
    contact: "Some weird id"
  },
}

export const WithPhoto: Story = {
  args: {
    ...Default.args,
    photo: portrait
  }
}

export const WithPhotoMinimal: Story = {
  args: {
    contact: {
      id: "some_id",
      name: "Pfr. M. Mustermann",
      createdAt: "2021-03-01T00:00:00.000Z",
      updatedAt: ""
    },
    photo: portrait
  }
}