Files
jarv.is/components/relative-time.tsx
T
2025-05-14 09:49:55 -04:00

15 lines
315 B
TypeScript

"use client";
import TimeAgo from "react-timeago";
import { type ComponentPropsWithoutRef } from "react";
const RelativeTime = ({ ...rest }: ComponentPropsWithoutRef<typeof TimeAgo>) => {
return (
<span suppressHydrationWarning>
<TimeAgo {...rest} />
</span>
);
};
export default RelativeTime;