diff --git a/packages/sanity/src/core/components/RelativeTime.tsx b/packages/sanity/src/core/components/RelativeTime.tsx index 0b09803b2a0..906e4fcd0c5 100644 --- a/packages/sanity/src/core/components/RelativeTime.tsx +++ b/packages/sanity/src/core/components/RelativeTime.tsx @@ -1,10 +1,16 @@ import React from 'react' import {type RelativeTimeOptions, useRelativeTime} from '../hooks/useRelativeTime' +/** + * @internal + */ export interface RelativeTimeProps extends RelativeTimeOptions { time: string | Date } +/** + * @internal + */ export function RelativeTime({time, ...options}: RelativeTimeProps) { const timestamp = time instanceof Date ? time : new Date(time) const timeAgo = useRelativeTime(timestamp, options)