UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

23 lines 1.08 kB
import React from "react"; import DataDownload from "./DataDownload.js"; import fixtures from "../testing/fixtures/index.js"; import { SimpleButton } from "./SimpleButton.js"; import ReportDecorator from "./storybook/ReportDecorator.js"; export default { component: DataDownload, title: "Components/DataDownload", decorators: [ReportDecorator], }; export const simple = () => { return (React.createElement(React.Fragment, null, React.createElement(DataDownload, { filename: "sample", data: fixtures.ranked, formats: ["csv", "json"] }))); }; export const flattenNested = () => { return (React.createElement(React.Fragment, null, React.createElement(DataDownload, { filename: "sample", data: fixtures.nested }))); }; export const button = () => { return (React.createElement(React.Fragment, null, React.createElement(DataDownload, { filename: "sample", data: fixtures.ranked, formats: ["csv", "json"], titleElement: React.createElement(SimpleButton, null, "\u27A5 Export") }))); }; //# sourceMappingURL=DataDownload.stories.js.map