openreplay/frontend/app/components/Errors/Error/DateAgo.js
Shekar Siri 2ed5cac986
Webpack upgrade and dependency cleanup (#523)
* change(ui) - webpack update
* change(ui) - api optimize and other fixes
2022-06-03 16:47:38 +02:00

16 lines
No EOL
359 B
JavaScript

import React from 'react';
import { resentOrDate } from 'App/date';
function DateAgo({ className, title, timestamp }) {
return (
<div className={className}>
<h4 className="font-medium">{ title }</h4>
<span className="text-sm">
{ `${ resentOrDate(timestamp) }` }
</span>
</div>
);
}
DateAgo.displayName = "DateAgo";
export default DateAgo;