import { ComponentProps } from "react"; import { Meta, StoryObj } from "@storybook/react"; import { ErrorCallout } from "."; type Props = ComponentProps; export default { component: ErrorCallout } as Meta; export const Default: StoryObj = { args: { error: new Error("This is an error message") } }; export const WithButton: StoryObj = { args: { buttonText: "Reload", error: new Error("An error occurred. Please reload to fix."), resetErrorBoundary: () => {} } };