UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

19 lines 760 B
import React from "react"; import { ReportError } from "./ReportError.js"; import ReportDecorator from "./storybook/ReportDecorator.js"; import Card from "./Card.js"; export default { component: ReportError, title: "Components/ReportError", decorators: [ReportDecorator], }; const ThrowComponent = () => { throw new Error("error!"); return React.createElement(React.Fragment, null); }; export const throws = () => (React.createElement(ReportError, null, React.createElement(ThrowComponent, null))); export const okay = () => (React.createElement(ReportError, null, React.createElement(Card, null, React.createElement("p", null, "This message should display without error")))); //# sourceMappingURL=ReportError.stories.js.map