|
| 1 | +import React, { PropTypes } from 'react' |
| 2 | +import CSSModules from 'browser/lib/CSSModules' |
| 3 | +import styles from './InfoPanel.styl' |
| 4 | + |
| 5 | +const InfoPanelTrashed = ({ |
| 6 | + storageName, folderName, updatedAt, createdAt, exportAsMd, exportAsTxt |
| 7 | +}) => ( |
| 8 | + <div className='infoPanel' styleName='control-infoButton-panel-trash' style={{display: 'none'}}> |
| 9 | + <div styleName='group-section'> |
| 10 | + <div styleName='group-section-label'> |
| 11 | + Storage |
| 12 | + </div> |
| 13 | + <div styleName='group-section-control'> |
| 14 | + {storageName} |
| 15 | + </div> |
| 16 | + </div> |
| 17 | + <div styleName='group-section'> |
| 18 | + <div styleName='group-section-label'> |
| 19 | + Folder |
| 20 | + </div> |
| 21 | + <div styleName='group-section-control'> |
| 22 | + <text>Trash</text>{folderName} |
| 23 | + </div> |
| 24 | + </div> |
| 25 | + <div styleName='group-section'> |
| 26 | + <div styleName='group-section-label'> |
| 27 | + Created |
| 28 | + </div> |
| 29 | + <div styleName='group-section-control'> |
| 30 | + {createdAt} |
| 31 | + </div> |
| 32 | + </div> |
| 33 | + <div styleName='group-section'> |
| 34 | + <div styleName='group-section-label'> |
| 35 | + Updated |
| 36 | + </div> |
| 37 | + <div styleName='group-section-control'> |
| 38 | + {updatedAt} |
| 39 | + </div> |
| 40 | + </div> |
| 41 | + |
| 42 | + <div id='export-wrap'> |
| 43 | + <button styleName='export--enable' onClick={(e) => exportAsMd(e)}> |
| 44 | + <i className='fa fa-file-code-o fa-fw' /> |
| 45 | + <p>.md</p> |
| 46 | + </button> |
| 47 | + |
| 48 | + <button styleName='export--enable' onClick={(e) => exportAsTxt(e)}> |
| 49 | + <i className='fa fa-file-text-o fa-fw' /> |
| 50 | + <p>.txt</p> |
| 51 | + </button> |
| 52 | + |
| 53 | + <button styleName='export--unable'> |
| 54 | + <i className='fa fa-file-pdf-o fa-fw' /> |
| 55 | + <p>.pdf</p> |
| 56 | + </button> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | +) |
| 60 | + |
| 61 | +InfoPanelTrashed.propTypes = { |
| 62 | + storageName: PropTypes.string.isRequired, |
| 63 | + folderName: PropTypes.string.isRequired, |
| 64 | + updatedAt: PropTypes.string.isRequired, |
| 65 | + createdAt: PropTypes.string.isRequired, |
| 66 | + exportAsMd: PropTypes.func.isRequired, |
| 67 | + exportAsTxt: PropTypes.func.isRequired |
| 68 | +} |
| 69 | + |
| 70 | +export default CSSModules(InfoPanelTrashed, styles) |
0 commit comments