import * as Model from "../model"; import * as React from "react"; export interface Props { image: Model.Image; onClose: () => void; width: number; } export class BigPicture extends React.PureComponent { static displayName = "BigPicture"; render() { const src = `img/1600/${this.props.image.src}`; return (
Download Close
); } private _keyPress = (e: React.KeyboardEvent) => { if (e.key === "Enter") { this.props.onClose(); } }; }