mirror of
https://github.com/AmruthPillai/Reactive-Resume.git
synced 2025-11-13 08:13:49 +10:00
14 lines
288 B
TypeScript
14 lines
288 B
TypeScript
import dayjs from 'dayjs';
|
|
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
import { useEffect } from 'react';
|
|
|
|
const DateWrapper: React.FC = ({ children }) => {
|
|
useEffect(() => {
|
|
dayjs.extend(relativeTime);
|
|
}, []);
|
|
|
|
return <>{children}</>;
|
|
};
|
|
|
|
export default DateWrapper;
|