2024-08-20 13:57:58 +00:00
|
|
|
import type { Meta, StoryObj } from "@storybook/react";
|
2024-08-21 15:14:40 +00:00
|
|
|
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: () => {},
|
|
|
|
},
|
|
|
|
};
|