mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 17:45:10 +01:00
26 lines
738 B
JavaScript
26 lines
738 B
JavaScript
'use strict';
|
|
|
|
import React from 'react';
|
|
|
|
import EditionDetailProperty from './detail_property';
|
|
|
|
|
|
let Header = React.createClass({
|
|
propTypes: {
|
|
content: React.PropTypes.object
|
|
},
|
|
|
|
render() {
|
|
var titleHtml = <div className="ascribe-detail-title">{this.props.content.title}</div>;
|
|
return (
|
|
<div className="ascribe-detail-header">
|
|
<EditionDetailProperty label="TITLE" value={titleHtml} />
|
|
<EditionDetailProperty label="BY" value={this.props.content.artist_name} />
|
|
<EditionDetailProperty label="DATE" value={ this.props.content.date_created.slice(0, 4) } />
|
|
<hr/>
|
|
</div>
|
|
);
|
|
}
|
|
});
|
|
|
|
export default Header; |