lbry-desktop/ui/modal/modalViewImage/view.jsx
infiinte-persistence 7419fefa2d Zoomable image viewer in Markdown (posts and comments)
## Issue
4899: Ability to expand images in markdown posts for viewing
2021-01-27 10:06:31 -05:00

22 lines
503 B
JavaScript

// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import Lightbox from 'react-awesome-lightbox';
import 'react-awesome-lightbox/build/style.css';
type Props = {
src: string,
title: String,
closeModal: () => void,
};
export default function ModalMobileSearch(props: Props) {
const { src, title, closeModal } = props;
return (
<Modal onAborted={closeModal} isOpen type="custom">
<Lightbox image={src} title={title} onClose={closeModal} />
</Modal>
);
}