'use strict'; import React from 'react'; import ResourceViewer from './ascribe_media/resource_viewer'; import EditionActions from '../actions/edition_actions'; import AclButton from './acl_button'; /** * This is the component that implements display-specific functionality */ let Edition = React.createClass({ propTypes: { edition: React.PropTypes.object, currentUser: React.PropTypes.object }, render() { let thumbnail = this.props.edition.thumbnail; let mimetype = this.props.edition.digital_work.mime; return (
); } }); let EditionHeader = React.createClass({ propTypes: { edition: React.PropTypes.object }, render() { var titleHtml =
{this.props.edition.title}
; return (

); } }); let EditionDetails = React.createClass({ propTypes: { edition: React.PropTypes.object, currentUser: React.PropTypes.object }, handleSuccess(){ EditionActions.fetchOne(this.props.edition.id); }, render() { return (


); } }); let EditionDetailProperty = React.createClass({ propTypes: { label: React.PropTypes.string, value: React.PropTypes.oneOfType([ React.PropTypes.string, React.PropTypes.element ]) }, render() { return (
{ this.props.label }:
{ this.props.value }
); } }); export default Edition;