aboutsummaryrefslogtreecommitdiff
path: root/src/web/js/components/time.react.js
blob: 07e1fbdf8ea5bf3467028a0a64af2ca076890f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
var React = require('react');
var createReactClass = require('create-react-class');
var PropTypes = require('prop-types');

var JarrTime = createReactClass({
    propTypes: {stamp: PropTypes.string.isRequired,
                text: PropTypes.string.isRequired},
    render: function() {
        return (<time dateTime={this.props.text} title={this.props.text}>
                    {this.props.stamp}
                </time>);
    },
});

module.exports = JarrTime;
bgstack15