DocSpace-buildtools/packages/asc-web-common/components/ErrorContainer/ErrorContainer.stories.js

22 lines
714 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import React from "react";
import { storiesOf } from "@storybook/react";
import withReadme from "storybook-readme/with-readme";
import Readme from "./README.md";
import { withKnobs, text } from "@storybook/addon-knobs/react";
import ErrorContainer from ".";
storiesOf("Components| ErrorContainer", module)
.addDecorator(withKnobs)
.addDecorator(withReadme(Readme))
.add("base", () => (
<ErrorContainer
headerText={text("headerText", "Error 404. Page not found")}
bodyText={text(
"bodyText",
"This page was removed, renamed or doesnt exist anymore."
)}
buttonText={text("buttonText", "Return to homepage")}
buttonUrl={text("buttonUrl", "/")}
/>
));