codex-marketplace-ui-compon.../stories/EmptyPlaceholder.stories.tsx

31 lines
749 B
TypeScript
Raw Normal View History

2024-08-20 13:57:58 +00:00
import type { Meta, StoryObj } from "@storybook/react";
import { EmptyPlaceholder } from "../src/components/EmptyPlaceholder/EmptyPlaceholder";
2024-08-20 13:57:58 +00:00
const meta = {
title: "Content/EmptyPlaceholder",
component: EmptyPlaceholder,
parameters: {
layout: "centered",
},
tags: ["autodocs"],
argTypes: {},
} satisfies Meta<typeof EmptyPlaceholder>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Default: Story = {
args: {
title: "Nothing to show",
message: "No data here yet. We will notify you when there's an update.",
},
};
export const Retry: Story = {
args: {
title: "Nothing to show",
message: "No data here yet. We will notify you when there's an update.",
onRetry: () => {},
},
};