import React from 'react'; import { BiError } from 'react-icons/bi'; import { GrDocumentMissing } from 'react-icons/gr'; import type { Meta, StoryObj } from '@storybook/react-vite'; import { NonIdealPage } from './NonIdealPage'; const meta: Meta = { title: 'pages/NonIdealPage', component: NonIdealPage.Layout, parameters: { layout: 'fullscreen', }, tags: ['autodocs'], decorators: [ (Story) => (
), ], }; export default meta; type Story = StoryObj; export const Default: Story = { args: { icon: , title: '页面不存在', description: '当前页面地址不存在或已被移除', }, }; export const WithCustomAction: Story = { args: { icon: , title: '发生错误', description: '页面加载时发生错误', action: (
), }, }; export const PageNotFoundStory: Story = { render: () => { return ; }, }; export const ServerErrorStory: Story = { render: () => { return ; }, }; export const ServerErrorWithCustomStatus: Story = { render: () => { return ; }, }; export const LayoutWithChildren: Story = { args: { icon: , title: '页面不存在', description: '当前页面地址不存在或已被移除', children: (
Additional information can go here
), }, };