import React from "react"; import _ from "lodash"; import { Button as SButton, Header as SHeader, Image, Modal, ModalActions, ModalContent, ModalHeader } from "semantic-ui-react"; function getMediaPathURL(path) { return `/media/${encodeURIComponent(path['path'])}`; } function getDownloadPathURL(path) { return `/download/${encodeURIComponent(path['path'])}`; } function getEpubViewerURL(path) { return `/epub.html?url=download/${encodeURIComponent(path['path'])}`; } function getIframeModal(path) { const url = getMediaPathURL(path); return