import { storiesOf } from "@storybook/react"; import React from "react"; import { Attachment } from "../../../util/attrs"; import { MockAttachmentService } from "../../Shared/__stories__/MockAttachmentService"; import { AttachmentPreview } from ".."; const ATTACHMENT_PDF: Attachment = { hidePreview: true, id: "1", name: "xSource Control Engagement Letter.pdf" }; const ATTACHMENT_MP3: Attachment = { hidePreview: false, id: "1", name: "Elephant’s Dream – The Wires", type: "audio/mpeg" }; const ATTACHMENT_MP3_PREVIEW_HIDDEN: Attachment = { hidePreview: true, id: "1", name: "Elephant’s Dream – The Wires", type: "audio/mpeg" }; const ATTACHMENT_MP4: Attachment = { hidePreview: false, id: "1", name: "Elephant’s Dream – The Wires", type: "video/mp4" }; const ATTACHMENT_MP4_PREVIEW_HIDDEN: Attachment = { hidePreview: true, id: "1", name: "Elephant’s Dream – The Wires", type: "video/mp4" }; storiesOf(`Attachments/${AttachmentPreview.name}`, module) .add("File", () => ( {}} onShowPreview={() => {}} onRemove={() => {}} /> )) .add("Audio", () => ( {}} onShowPreview={() => {}} onRemove={() => {}} /> )) .add("Audio no preview", () => ( {}} onShowPreview={() => {}} onRemove={() => {}} />)) .add("Video", () => ( {}} onShowPreview={() => {}} onRemove={() => {}} /> )) .add("Video no preview", () => ( {}} onShowPreview={() => {}} onRemove={() => {}} /> ));