RelativeTimestamp: convert to TSX

This commit is contained in:
Alex Gleason
2022-08-31 17:01:19 -05:00
parent b7abb11ca2
commit 38b6f87a83
8 changed files with 49 additions and 36 deletions

View File

@@ -84,7 +84,9 @@ interface IText extends Pick<React.HTMLAttributes<HTMLParagraphElement>, 'danger
/** Whether to truncate the text if its container is too small. */
truncate?: boolean,
/** Font weight of the text. */
weight?: Weights
weight?: Weights,
/** Tooltip title. */
title?: string,
}
/** UI-friendly text container with dark mode support. */
@@ -133,4 +135,7 @@ const Text: React.FC<IText> = React.forwardRef(
},
);
export default Text;
export {
Text as default,
IText,
};