(dateString: string, t?: (key: string, options?: any) => string)
| 83 | }; |
| 84 | |
| 85 | export const formatTimeAgo = (dateString: string, t?: (key: string, options?: any) => string): string => { |
| 86 | const { unit, value } = getTimeUnitSimple(dateString); |
| 87 | return t ? formatWithTranslation(unit, value, t) : formatTimeAgoEnglish(unit, value); |
| 88 | }; |
| 89 | |
| 90 | export const generateDateTimeTitle = (): string => { |
| 91 | const now = new Date(); |
no test coverage detected