1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-27 17:05:42 -04:00
Files
jarv.is/components/relative-time.tsx
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;