import PropTypes from 'prop-types' import React from 'react' import CSSModules from 'browser/lib/CSSModules' import styles from './InfoPanel.styl' import copy from 'copy-to-clipboard' import i18n from 'browser/lib/i18n' class InfoPanel extends React.Component { copyNoteLink () { const {noteLink} = this.props this.refs.noteLink.select() copy(noteLink) } render () { const { storageName, folderName, noteLink, updatedAt, createdAt, exportAsMd, exportAsTxt, exportAsHtml, wordCount, letterCount, type, print } = this.props return (
{updatedAt}
{i18n.__('MODIFICATION DATE')}
{wordCount}
{i18n.__('Words')}
{letterCount}
{i18n.__('Letters')}
{storageName}
{i18n.__('STORAGE')}
{folderName}
{i18n.__('FOLDER')}
{createdAt}
{i18n.__('CREATION DATE')}
{i18n.__('NOTE LINK')}