UNPKG

@selfcommunity/react-ui

Version:

React UI Components to integrate a Community created with SelfCommunity Platform.

21 lines (20 loc) 907 B
import { SCCommentType, SCFeedObjectType, SCNotificationCommentType } from '@selfcommunity/types'; import { NotificationItemProps } from '../../../shared/NotificationItem'; export interface CommentNotificationProps extends Pick<NotificationItemProps, Exclude<keyof NotificationItemProps, 'image' | 'disableTypography' | 'primary' | 'primaryTypographyProps' | 'secondary' | 'secondaryTypographyProps' | 'actions' | 'footer' | 'isNew'>> { /** * Notification obj * @default null */ notificationObject: SCNotificationCommentType; /** * Handles action on vote * @default null */ onVote?: (contribution: SCFeedObjectType | SCCommentType) => any; } /** * This component render the content of the notification of type comment/nested comment * @param props * @constructor */ export default function CommentNotification(props: CommentNotificationProps): JSX.Element;