2023-05-03 16:51:33 +00:00
|
|
|
import React from "react";
|
|
|
|
|
import { Meta, StoryObj } from "@storybook/react";
|
|
|
|
|
|
|
|
|
|
import DataError from "./DataError";
|
|
|
|
|
|
|
|
|
|
const meta: Meta<typeof DataError> = {
|
2025-05-06 13:20:03 +00:00
|
|
|
title: "Components/Error Messages/Data error",
|
2023-05-03 16:51:33 +00:00
|
|
|
component: DataError,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default meta;
|
|
|
|
|
|
|
|
|
|
type Story = StoryObj<typeof DataError>;
|
|
|
|
|
|
|
|
|
|
export const Basic: Story = {};
|
|
|
|
|
|
|
|
|
|
export const WithChildren: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
children: <p>this is custom JSX</p>,
|
|
|
|
|
},
|
|
|
|
|
};
|
2026-03-26 20:30:53 +00:00
|
|
|
|
|
|
|
|
export const SingleCustomLine: Story = {
|
|
|
|
|
args: {
|
|
|
|
|
singleCustomLine: true,
|
|
|
|
|
description:
|
|
|
|
|
"We can't retrieve data from Apple right now. Please try again later.",
|
|
|
|
|
},
|
|
|
|
|
};
|