church-website/src/components/ContactPerson2/ContactPerson2.stories.tsx
2024-12-17 15:21:32 +01:00

48 lines
No EOL
937 B
TypeScript

import { Meta, StoryObj } from '@storybook/react'
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
}
}