import preview from "../../.storybook/preview.tsx";
import { form } from "../storybook/decorators.tsx";
import { LetterheadSubmitError } from "./index.tsx";

const meta = preview.meta({
  title: "Components/LetterheadSubmitError",
  component: LetterheadSubmitError,
  tags: ["autodocs"],
  args: {},
  decorators: [
    form({ defaultErrors: { submit: "This is an error message." } }),
  ],
});

export const Default = meta.story({
  args: {
    name: "submit",
  },
});
