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' 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}
MODIFICATION DATE
{wordCount}
Words
{letterCount}
Letters
{storageName}
STORAGE
{folderName}
FOLDER
{createdAt}
CREATION DATE
NOTE LINK