+
+
+ {authorInfo.username}
+ {timeString}
+
+
+ );
+});
+
+export const Comment = forwardRef<
+ HTMLDivElement,
+ ComponentProps["Comments"]["Comment"]
+>((props, ref) => {
+ const {
+ className,
+ showActions,
+ authorInfo,
+ timeString,
+ actions,
+ children,
+ ...rest
+ } = props;
+
+ assertEmpty(rest, false);
+
+ const [hovered, setHovered] = useState(false);
+
+ const doShowActions =
+ actions &&
+ (showActions === true ||
+ showActions === undefined ||
+ (showActions === "hover" && hovered));
+
+ return (
+