import Decorator from "@saleor/storybook//Decorator";
import { ShippingErrorCode } from "@saleor/types/globalTypes";
import { storiesOf } from "@storybook/react";
import React from "react";
import OrderWeight, { OrderWeightProps } from "./OrderWeight";
const props: OrderWeightProps = {
disabled: false,
errors: [],
maxValue: "2",
minValue: "1",
noLimits: false,
onChange: () => undefined
};
storiesOf("Shipping / Order weight rates", module)
.addDecorator(Decorator)
.add("default", () => )
.add("loading", () => )
.add("new", () => )
.add("form errors", () => (
({
__typename: "ShippingError",
code: ShippingErrorCode.INVALID,
field
}))}
/>
));