import { storiesOf } from "@storybook/react"; import React from "react"; import { AttachmentCard } from ".."; import { Attachment } from "../../../util/attrs"; import { MockAttachmentService } from "../../Shared/__stories__/MockAttachmentService"; const ATTACHMENT_PDF: Attachment = { hidePreview: true, id: "1", name: "xSource Control Engagement Letter.pdf" }; const ATTACHMENT_JPG: Attachment = { hidePreview: true, id: "1", name: "mountain.jpg", type: "image/jpg" }; storiesOf(`Attachments/${AttachmentCard.name}`, module) .add("Default", () => ( {}} onRemove={() => {}} /> )) .add("Active", () => ( {}} onRemove={() => {}} style="active" /> )) .add("Selected", () => ( {}} onRemove={() => {}} style="selected" /> )) .add("Not Editable", () => ( {}} onRemove={() => {}} /> )) .add("Download pending", () => ( {}} onRemove={() => {}} /> )) .add("Download unavailable", () => ( {}} onRemove={() => {}} /> )) .add("Uploading", () => ( {}} onRemove={() => {}} /> )) .add("Uploading pending", () => ( {}} onRemove={() => {}} /> )) .add("Uploading unknown", () => ( {}} onRemove={() => {}} /> )) .add("Uploading failed", () => ( {}} onRemove={() => {}} /> ));