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,
  },
}
