@atlaskit/comment
Version:
A comment displays discussions and user feedback.
27 lines (26 loc) • 902 B
TypeScript
import React, { type FC, type ReactNode } from 'react';
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
export interface CommentTimeProps {
/**
* The time of the comment.
*/
children?: ReactNode;
/**
* The URL of the link. If not provided, the element will be rendered as text.
*/
href?: string;
/**
* Handler called when the element is clicked.
*/
onClick?: (event: React.MouseEvent<HTMLAnchorElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent) => void;
/**
* Handler called when the element is focused.
*/
onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
/**
* Handler called when the element is moused over.
*/
onMouseOver?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
}
declare const CommentTime: FC<CommentTimeProps>;
export default CommentTime;