church-website/src/components/Error/Error.stories.tsx
2026-04-16 15:06:37 +02:00

29 lines
524 B
TypeScript

import { Meta, StoryObj } from '@storybook/nextjs-vite'
import Error from './Error'
const meta: Meta<typeof Error> = {
component: Error,
}
type Story = StoryObj<typeof Error>
export default meta
export const NotFound: Story = {
args: {
statusCode: 404,
message: 'Die angeforderte Seite wurde nicht gefunden.',
},
}
export const ServerError: Story = {
args: {
statusCode: 500,
message: 'Interner Serverfehler.',
},
}
export const WithoutMessage: Story = {
args: {
statusCode: 403,
},
}