mirror of
https://github.com/wassname/talk.git
synced 2026-08-20 12:50:41 +08:00
16 lines
338 B
JavaScript
16 lines
338 B
JavaScript
import React from 'react';
|
|
import PropTypes from 'prop-types';
|
|
import {timeago} from 'coral-framework/services/i18n';
|
|
|
|
const name = 'talk-plugin-pubdate';
|
|
|
|
const PubDate = ({created_at}) => <div className={`${name}-text`}>
|
|
{timeago(created_at)}
|
|
</div>;
|
|
|
|
PubDate.propTypes = {
|
|
created_at: PropTypes.string,
|
|
};
|
|
|
|
export default PubDate;
|