codex-marketplace-ui-compon.../stories/Failure.stories.ts

33 lines
640 B
TypeScript

import type { Meta, StoryObj } from "@storybook/react";
import { Failure } from "../src/components/Failure/Failure";
const meta = {
title: "Content/Failure",
component: Failure,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
argTypes: {},
} satisfies Meta<typeof Failure>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
title: "Some error",
code: 500,
message: "Something went wrong",
},
};
export const WithAction: Story = {
args: {
title: "Some error",
code: 500,
message: "Something went wrong",
onClick: () => {},
},
};