mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-06-27 17:05:42 -04:00
15 lines
315 B
TypeScript
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;
|