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

22 lines
714 B
JavaScript
Raw Normal View History

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 ".";
2019-07-05 09:35:34 +00:00
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", "/")}
/>
));