// @flow import React from 'react'; import { Modal } from 'modal/modal'; import { FormField } from 'component/common/form'; type Props = { upload: (string, boolean) => void, path: string, nsfw: boolean, closeModal: () => void, updatePublishForm: ({}) => void, }; class ModalConfirmThumbnailUpload extends React.PureComponent { upload() { const { upload, updatePublishForm, closeModal, path, nsfw } = this.props; upload(path, nsfw); updatePublishForm({ thumbnailPath: path }); closeModal(); } render() { const { closeModal, path, updatePublishForm, nsfw } = this.props; return ( this.upload()} onAborted={closeModal} >

{__('Are you sure you want to upload this thumbnail to spee.ch')}?

{path}
updatePublishForm({ nsfw: event.target.checked })} />
); } } export default ModalConfirmThumbnailUpload;