openreplay/frontend/app/components/Errors/Error/DateAgo.js
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

14 lines
357 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;